Skip to content

An Ansible Role to install Ansible from distribution packages.

License

Notifications You must be signed in to change notification settings

while-true-do/ansible-role-app_ansible

Repository files navigation

Github (tag) Github (license) Github (issues) Github (pull requests)

Travis (com)

Ansible (min. version) Ansible (platforms) Ansible (tags)

Ansible Role: app_ansible

An Ansible Role to install Ansible from distribution packages.

Motivation

Having Ansible running on a workstation or control server is a common action and a nice demonstration case for Ansible.

Description

Installing Ansible from distribution packages / repository.

Requirements

Using distribution packages on CentOS requires to have the EPEL.

Used Modules:

Installation

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

Usage

Role Variables

---
# 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"

Example Playbook

Running Ansible Roles can be done in a playbook.

Simple

---
- hosts: all
  roles:
    - role: while_true_do.app_ansible

With EPEL

---
- hosts: all
  roles:
    - role: while_true_do.rpo_epel
    - role: while_true_do.app_ansible

Known Issues

  1. RedHat Testing is currently not possible in public, due to limitations in subscriptions.
  2. Some services and features cannot be tested properly, due to limitations in docker.

Testing

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.

Contribute

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.

License

This work is licensed under a BSD-3-Clause License.

Contact