Ansible Role - Ansible
Go to file
2022-06-01 22:20:23 -05:00
.github Update release workflow for more consistency. 2021-12-27 11:34:38 -06:00
defaults Fixes #7: Allow installation via Pip instead of system package manager. 2018-10-04 14:15:42 -05:00
meta Make role work correctly on CentOS 8 and simplify apt repos. 2020-07-22 11:40:16 -05:00
molecule/default Add role_name_check skipping to all molecule test suites. 2022-06-01 22:20:23 -05:00
tasks Make role work correctly on CentOS 8 and simplify apt repos. 2020-07-22 11:40:16 -05:00
.ansible-lint Make ansible-lint work again. 2021-02-22 16:12:10 -06:00
.gitignore Make ansible-lint work again. 2021-02-22 16:12:10 -06:00
.yamllint Upgrade Travis CI docker version to fix Molecule tests. 2020-08-12 14:51:55 -05:00
LICENSE Add a LICENSE file for MIT license. [ci skip] 2017-03-31 11:23:00 -05:00
README.md Switch from testing on CentOS 8 to Rocky Linux 8. 2021-05-05 14:43:46 -05:00

Ansible Role: Ansible

CI

An Ansible Role that installs Ansible on Linux servers.

Requirements

If using on a RedHat/CentOS/Rocky Linux-based host, make sure you've added the EPEL repository (it can easily be installed by including the geerlingguy.repo-epel role on Ansible Galaxy).

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

ansible_install_method: package

Whether to install Ansible via the system package manager (apt, yum, dnf, etc.), or via pip. If set to pip, you need to make sure Pip is installed prior to running this role. You can use the geerlingguy.pip module to install Pip easily.

ansible_install_version_pip: ''

If ansible_install_method is set to pip, the specific Ansible version to be installed via Pip. If not set, the latest version of Ansible will be installed.

Dependencies

None.

Example Playbook

Install from the system package manager:

- hosts: servers
  roles:
    - role: geerlingguy.ansible

Install from pip:

- hosts: servers
  vars:
    ansible_install_method: pip
    ansible_install_version_pip: "2.7.0"
  roles:
    - role: geerlingguy.pip
    - role: geerlingguy.ansible

License

MIT / BSD

Author Information

This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.