mafalb / mafalb.apache / 0.0.2 / module / normalize_parameter take a list of apache httpd config files and return a slightly modified version of that list | "added in version" 0.0.1 of mafalb.apache" Authors: Markus Falb (@mafalb) This plugin has a corresponding action plugin.mafalb.apache.normalize_parameter (0.0.2) — module
Install with ansible-galaxy collection install mafalb.apache:==0.0.2
collections: - name: mafalb.apache version: 0.0.2
take a list of config files and return a slightly modified version of that list
- name: create modified cfgs list mafalb.apache.normalize_parameter: parameter: "{{ 'cfgs' if cfgs is defined else 'httpd_cfgs' }}" when: cfgs is defined or httpd_cfgs is defined register: _cfgs
parameter: description: - The name of the variable that should act as the input of processing - This is used by mafalb.apache.httpd, I dont know if it's useful - outside of that. required: true type: str
data: description: return the modified list in C(data) returned: always sample: - dest: /etc/httpd/conf/httpd.conf src: mafalb.apache.httpd.conf.j2 - dest: bla.conf src: bla.conf.j2 - dest: bla1.conf src: mafalb.apache.httpd.conf.j2 yaml: LogFormat: '"%h gugu" justforCI' type: dict original_data: description: - return the unmodified list in C(original_data) returned: always sample: - dest: _main_config - dest: bla.conf src: bla.conf.j2 - dest: bla1.conf yaml: LogFormat: '"%h gugu" justforCI' type: dict