21 lines
557 B
YAML
21 lines
557 B
YAML
---
|
|
- hosts: all
|
|
become: yes
|
|
|
|
tasks:
|
|
- name: Update apt cache.
|
|
apt: update_cache=yes
|
|
when: ansible_os_family == 'Debian'
|
|
|
|
- name: Install test dependencies (RedHat).
|
|
package: name=logrotate state=present
|
|
when: ansible_os_family == 'RedHat'
|
|
|
|
- name: Copy initctl_faker into place for Ubuntu 14.04.
|
|
copy:
|
|
src: initctl_faker
|
|
dest: /sbin/initctl
|
|
mode: 0755
|
|
force: yes
|
|
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '14.04'
|
|
changed_when: false
|