mafalb.apache.normalize_parameter (0.0.2) — module

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.

Install collection

Install with ansible-galaxy collection install mafalb.apache:==0.0.2


Add to requirements.yml

  collections:
    - name: mafalb.apache
      version: 0.0.2

Description

take a list of config files and return a slightly modified version of that list

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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

Inputs

    
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

Outputs

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