ansible-role-ansible/tasks/main.yml

19 lines
527 B
YAML
Raw Normal View History

2014-06-07 18:05:13 +02:00
---
# 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'