29 lines
680 B
YAML
29 lines
680 B
YAML
|
---
|
||
|
- hosts: all
|
||
|
|
||
|
pre_tasks:
|
||
|
- name: Ensure build dependencies are installed (RedHat).
|
||
|
yum: 'name="{{ item }}" state=present'
|
||
|
with_items:
|
||
|
- "@Development tools"
|
||
|
- tar
|
||
|
- unzip
|
||
|
when: ansible_os_family == 'RedHat'
|
||
|
|
||
|
- name: Update apt cache.
|
||
|
apt: update_cache=yes cache_valid_time=600
|
||
|
when: ansible_os_family == 'Debian'
|
||
|
changed_when: false
|
||
|
|
||
|
- name: Ensure build dependencies are installed (Debian).
|
||
|
apt: 'name="{{ item }}" state=installed'
|
||
|
with_items:
|
||
|
- build-essential
|
||
|
- unzip
|
||
|
- tar
|
||
|
- sudo
|
||
|
when: ansible_os_family == 'Debian'
|
||
|
|
||
|
roles:
|
||
|
- role_under_test
|