stuff
This commit is contained in:
@@ -28,6 +28,14 @@
|
||||
group: root
|
||||
mode: '0644'
|
||||
|
||||
- name: Copy ssl.conf
|
||||
ansible.builtin.copy:
|
||||
src: ssl.conf
|
||||
dest: /etc/nginx/ssl.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
|
||||
- name: Copy html content
|
||||
ansible.builtin.copy:
|
||||
src: www/
|
||||
@@ -36,7 +44,17 @@
|
||||
group: www-data
|
||||
mode: '0644'
|
||||
|
||||
- name: Restart nginx
|
||||
- name: Validate config
|
||||
ansible.builtin.command: nginx -t
|
||||
changed_when: false
|
||||
|
||||
- name: Start nginx
|
||||
ansible.builtin.service:
|
||||
name: nginx
|
||||
state: restarted
|
||||
state: started
|
||||
enabled: true
|
||||
|
||||
- name: Reload nginx
|
||||
ansible.builtin.service:
|
||||
name: nginx
|
||||
state: reloaded
|
||||
|
||||
Reference in New Issue
Block a user