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

16 lines
279 B
YAML
Raw Normal View History

2020-11-02 04:51:35 +01:00
---
2021-02-04 13:43:08 +01:00
- name: Update apt cache
become: true
ansible.builtin.apt:
2021-02-04 13:43:08 +01:00
cache_valid_time: 3600
update_cache: true
when:
- ansible_pkg_mgr == "apt"
2020-11-02 04:51:35 +01:00
- name: Install nginx
2021-02-04 13:43:08 +01:00
become: true
ansible.builtin.package:
2021-02-04 13:43:08 +01:00
name:
2020-11-02 04:51:35 +01:00
- 'nginx'
2021-02-04 13:43:08 +01:00
state: "{{ nxinx__state }}"