Default variables

Role configuration

resources__enabled

Enable or disable management of custom resources.

resources__enabled: True
resources__src

Absolute path to the directory on Ansible Controller where custom resources can be found. You need to create this directory manually.

By default, path is relative to the Ansible inventory.

resources__src: '{{ inventory_dir | realpath + "/../resources/" }}'

Manage parent directories

This section allows to configure the behavior for non existing parent directories for destination file paths.

This applies to the following sections:

resources__parent_dirs_create

Should the parent directories be created by the role? Not creating it will cause an Ansible run time error when the directory does not exist. The global setting can be overwritten for individual items using item.parent_dirs_create.

resources__parent_dirs_create: True
resources__parent_dirs_recurse

Recursively set the specified file attributes of parent directories when creating them. The global setting can be overwritten for individual items using item.parent_dirs_recurse.

resources__parent_dirs_recurse: True
resources__parent_dirs_owner

Unix system user who owns the parent directory. See also resources__parent_dirs_recurse. The global setting can be overwritten for individual items using item.parent_dirs_owner.

resources__parent_dirs_owner: '{{ omit }}'
resources__parent_dirs_group

Unix system group of the parent directory. See also resources__parent_dirs_recurse. The global setting can be overwritten for individual items using item.parent_dirs_group.

resources__parent_dirs_group: '{{ omit }}'
resources__parent_dirs_mode

Unix permissions of the parent directory. See also resources__parent_dirs_recurse. The global setting can be overwritten for individual items using item.parent_dirs_mode.

resources__parent_dirs_mode: '{{ omit }}'

Manage custom paths

These lists allow you to manage file and directory paths on remote hosts using Ansible file module. By default role treats specified paths as directory names which should be present on the remote host. You can use all parameters supported by the Ansible file module.

See resources__paths for more details.

resources__paths

Paths managed on all hosts in Ansible inventory.

resources__paths: []
resources__group_paths

Paths managed on hosts in a specific group in Ansible inventory.

resources__group_paths: []
resources__host_paths

Paths managed on specific hosts in Ansible inventory.

resources__host_paths: []

Manage custom remote resources

These lists allow you to specify remote resources to download to the hosts using the Ansible get_url module. You can download files over HTTP, HTTPS, FTP and use all options supported by this module.

See resources__urls for more details.

resources__urls

Manage online resources on all hosts in Ansible inventory.

resources__urls: []
resources__group_urls

Manage online resources on hosts in a specific group in Ansible inventory.

resources__group_urls: []
resources__host_urls

Manage online resources on specific hosts in Ansible inventory.

resources__host_urls: []

Manage custom archives

These lists allow you to unpack archives stored on Ansible Controller to remote hosts using the Ansible unarchive module. You can use all of the parameters supported by this module.

See resources__archives for more details.

resources__archives

Manage archives on all hosts in Ansible inventory.

resources__archives: []
resources__group_archives

Manage archives on hosts in specific group in Ansible inventory.

resources__group_archives: []
resources__host_archives

Manage archives on specific hosts in Ansible inventory.

resources__host_archives: []

Manage custom files

These lists allow you to manage file contents on remote hosts, either by copying files from the Ansible Controller, or providing the contents directly in Ansible inventory. You can use all parameters supported by the Ansible copy module.

See resources__files for more details.

resources__files

Manage file contents on all hosts in Ansible inventory.

resources__files: []
resources__group_files

Manage file contents on hosts in a specific group in Ansible inventory.

resources__group_files: []
resources__host_files

Manage file contents on specific hosts in Ansible inventory.

resources__host_files: []

Manage custom delayed paths

These lists allow you to manage file and directory paths on remote hosts using the Ansible file module. The lists can be used exactly the same as resources__(?:group_|host_)?paths from the Manage custom paths section. The only difference is that the custom delayed paths are handled after all non delayed resources. This allows to create symbolic links to files provided by resources__(?:group_|host_)?files for example.

See resources__paths for more details.

resources__delayed_paths

Paths managed on all hosts in Ansible inventory.

resources__delayed_paths: []
resources__group_delayed_paths

Paths managed on hosts in a specific group in Ansible inventory.

resources__group_delayed_paths: []
resources__host_delayed_paths

Paths managed on specific hosts in Ansible inventory.

resources__host_delayed_paths: []