forked from CCCHH/ansible-infra
Use nginx role with custom nginx.conf support
This commit is contained in:
parent
64f9484b16
commit
65ac14c18b
23 changed files with 378 additions and 115 deletions
13
playbooks/roles/nginx/tasks/main/nginx_install.yaml
Normal file
13
playbooks/roles/nginx/tasks/main/nginx_install.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
- name: make sure the `nginx` package is installed
|
||||
ansible.builtin.apt:
|
||||
name: nginx={{ nginx__version_spec }}*
|
||||
state: present
|
||||
allow_change_held_packages: true
|
||||
update_cache: true
|
||||
become: true
|
||||
|
||||
- name: apt-mark hold `nginx`
|
||||
ansible.builtin.dpkg_selections:
|
||||
name: nginx
|
||||
selection: hold
|
||||
become: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue