mirror of
https://github.com/DO1JLR/ansible_role_nginx.git
synced 2024-08-16 16:19:48 +02:00
15 lines
279 B
YAML
15 lines
279 B
YAML
---
|
|
- name: Update apt cache
|
|
become: true
|
|
ansible.builtin.apt:
|
|
cache_valid_time: 3600
|
|
update_cache: true
|
|
when:
|
|
- ansible_pkg_mgr == "apt"
|
|
|
|
- name: Install nginx
|
|
become: true
|
|
ansible.builtin.package:
|
|
name:
|
|
- 'nginx'
|
|
state: "{{ nxinx__state }}"
|