homeserver/roles/hispanico.nginx-revproxy/molecule/default/playbook.yml
2020-08-18 11:57:53 +02:00

26 lines
520 B
YAML

---
- name: Converge
hosts: all
become: true
pre_tasks:
- name: Install cron (RedHat).
yum:
name: cronie
state: present
when: ansible_os_family == 'RedHat'
- name: Install cron (Debian).
apt:
name: cron
state: present
when: ansible_distribution == 'Debian'
- name: Update apt cache.
apt:
update_cache: true
cache_valid_time: 600
when: ansible_distribution == 'Ubuntu'
roles:
- role: hispanico.nginx-revproxy