1
0
Fork 0
mirror of https://github.com/DO1JLR/ansible_role_nginx.git synced 2024-08-16 16:19:48 +02:00
ansible_role_nginx/tasks/installation.yml

15 lines
247 B
YAML

---
- name: Update apt cache
become: true
apt:
cache_valid_time: 3600
update_cache: true
when:
- ansible_pkg_mgr == "apt"
- name: Install nginx
become: true
package:
name:
- 'nginx'
state: "{{ nxinx__state }}"