mirror of
https://github.com/geerlingguy/ansible-role-ansible.git
synced 2024-11-10 09:49:29 +01:00
19 lines
527 B
YAML
19 lines
527 B
YAML
|
---
|
||
|
# RedHat installation.
|
||
|
- name: Install Ansible (RedHat).
|
||
|
yum: pkg=ansible state=installed enablerepo=epel
|
||
|
when: ansible_os_family == 'RedHat'
|
||
|
|
||
|
# Debian installation.
|
||
|
- name: Add rquillo repository (Debian).
|
||
|
apt_repository: repo='ppa:rquillo/ansible'
|
||
|
when: ansible_os_family == 'Debian'
|
||
|
|
||
|
- name: Update apt cache (Debian).
|
||
|
apt: update_cache=yes cache_valid_time=86400
|
||
|
when: ansible_os_family == 'Debian'
|
||
|
|
||
|
- name: Install Ansible (Debian).
|
||
|
apt: pkg=ansible state=installed
|
||
|
when: ansible_os_family == 'Debian'
|