ansible

ansible

quality Build Status Documentation Status GitHub tag

Ansible role. Install and configure Ansible.

Documentation at readthedocs.io

Feel free to share your feedback and report issues.

Contributions are welcome.

Supported platforms

This role has been developed and tested with

Requirements

Roles

  • vbotka.ansible_lib

Collections

  • ansible.posix
  • community.general

Note: The collection ansible.posix is needed for some playbooks and roles in contrib

Role Variables

Review the defaults and examples in vars.

Plugins

No plugins are installed by default. Variable default is ma_plugins: [ ]. Examples how to configure plugins can be found in vars/main.yml.sample

To activate installed plugins use template ansible-plugins.cfg.j2 and configure *_plugins in ansible.cfg

ma_config_type: template
ma_config_template_default: ansible-plugins.cfg.j2

Check mode

Check mode will fail if the directories ma_plugins_path and ma_src_path are missing. To avoid the failure create the directories first

shell> ansible-playbook ansible.yml -t ma_plugins_path,ma_src_path

If you want to download the repository and the release notes create also directories ma_repo_path and ma_rnotes_path

shell> ansible-playbook ansible.yml -t ma_repo_path,ma_rnotes_path

Check mode will fail for the first time when there are plugins configured in ma_plugins and the archives haven't been downloaded yet. To avoid the failure download the archives first

shell> ansible-playbook ansible.yml -t ma_plugins_download

Then check the playbook and the roles, and see what will be changed

shell> ansible-playbook ansible.yml --check --diff

Ansible lint

Use the configuration file .ansible-lint.local when running ansible-lint. Some rules might be disabled and some warnings might be ignored. See the notes in the configuration file.

shell> ansible-lint -c .ansible-lint.local

References

License

license

Author Information

Vladimir Botka

About

Install and configure Ansible.

Install
ansible-galaxy install vbotka/ansible-ansible
GitHub repository
License
bsd-2-clause
Downloads
189