homeserver/roles/geerlingguy.ansible
mg 4098803311 Rolle aktualisiert: ansible (#466)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: #466
2023-02-17 11:49:21 +01:00
..
.github Rolle aktualisiert: ansible (#466) 2023-02-17 11:49:21 +01:00
defaults Rolle aktualisiert: ansible (#466) 2023-02-17 11:49:21 +01:00
meta rollen "ausgeschrieben" 2021-02-13 14:20:18 +01:00
molecule/default Rolle aktualisiert: ansible (#466) 2023-02-17 11:49:21 +01:00
tasks Rolle aktualisiert: ansible (#466) 2023-02-17 11:49:21 +01:00
.ansible-lint Rolle aktualisiert: ansible (#466) 2023-02-17 11:49:21 +01:00
.gitignore Rolle aktualisiert: ansible (#466) 2023-02-17 11:49:21 +01:00
.yamllint rollen "ausgeschrieben" 2021-02-13 14:20:18 +01:00
LICENSE rollen "ausgeschrieben" 2021-02-13 14:20:18 +01:00
README.md Rolle aktualisiert: ansible (#466) 2023-02-17 11:49:21 +01: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.

ansible_install_pip_extra_args: ''

If ansible_install_method is set to pip, the extra arguments to be given to pip are listed here. If not set, no extra arguments are given.

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"
    ansible_install_pip_extra_args: "--user"
  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.