mirror of
https://github.com/geerlingguy/ansible-role-ansible.git
synced 2025-01-08 18:47:45 +01:00
Update role to use distro-specific includes.
This commit is contained in:
parent
621df1e600
commit
46026b274a
@ -1,18 +1,7 @@
|
|||||||
---
|
---
|
||||||
# RedHat installation.
|
# Setup/install tasks.
|
||||||
- name: Install Ansible (RedHat).
|
- include: setup-RedHat.yml
|
||||||
yum: pkg=ansible state=installed enablerepo=epel
|
|
||||||
when: ansible_os_family == 'RedHat'
|
when: ansible_os_family == 'RedHat'
|
||||||
|
|
||||||
# Debian installation.
|
- include: setup-Debian.yml
|
||||||
- name: Add rquillo repository (Debian).
|
|
||||||
apt_repository: repo='ppa:ansible/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'
|
when: ansible_os_family == 'Debian'
|
||||||
|
9
tasks/setup-Debian.yml
Normal file
9
tasks/setup-Debian.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
- name: Add ansible repository.
|
||||||
|
apt_repository: repo='ppa:ansible/ansible'
|
||||||
|
|
||||||
|
- name: Update apt cache.
|
||||||
|
apt: update_cache=yes cache_valid_time=86400
|
||||||
|
|
||||||
|
- name: Install Ansible.
|
||||||
|
apt: name=ansible state=installed
|
3
tasks/setup-RedHat.yml
Normal file
3
tasks/setup-RedHat.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
- name: Install Ansible.
|
||||||
|
yum: name=ansible state=installed enablerepo=epel
|
Loading…
Reference in New Issue
Block a user