Ansible Role - Ansible
Go to file
Jeff Geerling 00ff01ede6 Fix Ubuntu installation issue if dirmngr isn't present. 2020-02-20 16:43:22 -06:00
.github YAML syntax fix. 2019-12-11 11:36:00 -06:00
defaults Fixes #7: Allow installation via Pip instead of system package manager. 2018-10-04 14:15:42 -05:00
meta Fix some Ansible Lint issues. 2018-09-25 22:29:54 -05:00
molecule/default Fix Ubuntu installation issue if dirmngr isn't present. 2020-02-20 16:43:22 -06:00
tasks Fix Ubuntu installation issue if dirmngr isn't present. 2020-02-20 16:43:22 -06:00
.gitignore Switch tests to use Molecule. 2018-09-25 22:22:57 -05:00
.travis.yml Update molecule configuration to work with 3.0. 2020-02-20 14:19:55 -06: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.