An Ansible Role to install Ansible from distribution packages.
Having Ansible running on a workstation or control server is a common action and a nice demonstration case for Ansible.
Installing Ansible from distribution packages / repository.
Using distribution packages on CentOS requires to have the EPEL.
Used Modules:
Install from Github
git clone https://github.com/while-true-do/ansible-role-app_ansible.git while_true_do.app_ansible
Install from Ansible Galaxy
ansible-galaxy install while_true_do.app_ansible
Dependencies:
On CentOS, the Ansible Package is available from EPEL. You need to enable EPEL beforehand. An Ansible Role to enable EPEL is provided.
ansible-galaxy install -r requirements.yml
---
# defaults file for while_true_do.app_ansible
## Package Management
# https://docs.ansible.com/ansible/latest/modules/package_module.html
wtd_app_ansible_package: "ansible"
# State can be present|latest|absent
wtd_app_ansible_package_state: "present"
Running Ansible Roles can be done in a playbook.
---
- hosts: all
roles:
- role: while_true_do.app_ansible
---
- hosts: all
roles:
- role: while_true_do.rpo_epel
- role: while_true_do.app_ansible
- RedHat Testing is currently not possible in public, due to limitations in subscriptions.
- Some services and features cannot be tested properly, due to limitations in docker.
Most of the "generic" tests are located in the Test Library.
Ansible specific testing is done with Molecule.
Infrastructure testing is done with testinfra.
Automated testing is done with Travis CI.
Thank you so much for considering to contribute. We are very happy, when somebody is joining the hard work. Please fell free to open Bugs, Feature Requests or Pull Requests after reading the Contribution Guideline.
See who has contributed already in the kudos.txt.
This work is licensed under a BSD-3-Clause License.
- Site https://while-true-do.io
- Twitter https://twitter.com/wtd_news
- Code https://github.com/while-true-do
- Mail [email protected]
- IRC freenode, #while-true-do
- Telegram https://t.me/while_true_do