add nginx.conf and deploy it

This commit is contained in:
2023-01-21 18:32:20 +01:00
parent 568cf5e444
commit e5a64b1846
3 changed files with 95 additions and 1 deletions

View File

@@ -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 }}"