Dec 21, 2021 · added in 2.1 of ansible.builtin Add custom HTTP headers to a request in the format of a YAML hash. As of 2.3 supplying Content-Type here will override the header generated by supplying json or form-urlencoded for body_format .
Modules · add_host – Add a host (and alternatively a group) to the ansible-playbook in-memory inventory · apt – Manages apt-packages · apt_key – Add or remove an ...
Synopsis . Installs, upgrade, downgrades, removes, and lists packages and groups with the yum package manager.. This module only works on Python 2. If you require Python 3 support see the ansible.builtin.dnf module.
21.12.2021 · Use the ansible.builtin.fetch module to copy files from remote locations to the local box. If you need variable interpolation in copied files, use the ansible.builtin.template module. Using a variable in the content field will result in unpredictable output. For Windows targets, use the ansible.windows.win_copy module instead.
21.12.2021 · Synopsis . Set attributes of files, symlinks or directories. Alternatively, remove files, symlinks or directories. Many other modules support the same options as the file module - including ansible.builtin.copy, ansible.builtin.template, and ansible.builtin.assemble.. For Windows targets, use the ansible.windows.win_file module instead.
Dec 21, 2021 · Inventory Plugins . advanced_host_list – Parses a ‘host list’ with ranges. auto – Loads and executes an inventory plugin specified in a YAML config. constructed – Uses Jinja2 to construct vars and groups based on existing inventory.
Note. This module is part of ansible-base and included in all Ansible installations. In most cases, you can use the short module name user even without specifying the collections: keyword. Despite that, we recommend you use the FQCN for easy linking to the module documentation and to avoid conflicting with other collections that may have the same module name.
ansible.builtin.include – Include a play or task list. Note. This module is part of ansible-base and included in all Ansible installations. In most cases, you ...
Nov 12, 2021 · Synopsis . This module prints statements during execution and can be useful for debugging variables or expressions without necessarily halting the playbook. Useful for debugging together with the ‘when:’ directive. This module is also supported for Windows targets.
Dec 21, 2021 · added in 2.8 of ansible.builtin Force the exit code of /usr/sbin/policy-rc.d. For example, if policy_rc_d=101 the installed package will not trigger a service start.
21.12.2021 · Lookup Plugins . config – Lookup current Ansible configuration values. csvfile – read data from a TSV or CSV file. dict – returns key/value pair items from dictionaries. env – Read the value of environment variables. file – read file contents. fileglob – list files matching a pattern. first_found – return first file found from list. indexed_items – rewrites lists to return ...
21.12.2021 · ansible.builtin.sysvinit – Manage SysV services. This module is part of ansible-core and included in all Ansible installations. In most cases, you can use the short module name sysvinit even without specifying the collections: keyword. However, we recommend you use the FQCN for easy linking to the module documentation and to avoid conflicting ...
Dec 21, 2021 · Use the ansible.builtin.fetch module to copy files from remote locations to the local box. If you need variable interpolation in copied files, use the ansible.builtin.template module. Using a variable in the content field will result in unpredictable output. For Windows targets, use the ansible.windows.win_copy module instead.
Synopsis . Installs, upgrade, downgrades, removes, and lists packages and groups with the yum package manager.. This module only works on Python 2. If you require Python 3 support see the ansible.builtin.dnf module.