add nginx.conf and deploy it
This commit is contained in:
@@ -83,6 +83,15 @@
|
||||
ansible_become_method: sudo
|
||||
ansible_become_password: "{{ sudo_password }}"
|
||||
|
||||
- name: "copy nginx.conf"
|
||||
copy:
|
||||
src: "nginx.conf"
|
||||
dest: "/etc/nginx/"
|
||||
vars:
|
||||
ansible_become: yes
|
||||
ansible_become_method: sudo
|
||||
ansible_become_password: "{{ sudo_password }}"
|
||||
|
||||
- name: "all copy configure nginx"
|
||||
copy:
|
||||
src: "{{ item.conf_name }}"
|
||||
|
Reference in New Issue
Block a user