Ansible Role - Ansible
Go to file
Jeff Geerling 214fe648a4 Issue #18: Drop Ubuntu 20.04 package support for now since PPA doesn't exist. 2020-07-22 11:53:49 -05:00
.github Add probot/stale configuration to repository for stale issues. 2020-03-05 10:41:20 -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 Make sure molecule lint script has set -e option. 2020-02-24 09:42:02 -06:00
tasks Make role work correctly on CentOS 8 and simplify apt repos. 2020-07-22 11:40:16 -05:00
.gitignore Switch tests to use Molecule. 2018-09-25 22:22:57 -05:00
.travis.yml Issue #18: Drop Ubuntu 20.04 package support for now since PPA doesn't exist. 2020-07-22 11:53:49 -05:00
.yamllint Fix previous commit. 2020-02-20 14:24:56 -06:00
LICENSE Add a LICENSE file for MIT license. [ci skip] 2017-03-31 11:23:00 -05:00
README.md Update README.md (#9) 2019-05-04 21:33:32 -05:00

README.md

Ansible Role: Ansible

Build Status

An Ansible Role that installs Ansible on Linux servers.

Requirements

If using on a RedHat/CentOS-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.