Skip to content

Commit

Permalink
Fix task
Browse files Browse the repository at this point in the history
  • Loading branch information
FozzeY committed Nov 18, 2023
1 parent cb6659b commit 2358904
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions ansible/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
- name: Install nginx
openbsd_pkg:
name: nginx

- name: Copy certs
copy:
src: "{{ item }}"
Expand All @@ -33,6 +34,7 @@
mode: 0600
with_fileglob:
- fozzey_ru.*

- name: Set nginx config
copy:
src: nginx.conf
Expand All @@ -42,13 +44,13 @@
mode: 0644
notify:
- restart nginx
handlers:
- name: restart sshd
service: name=sshd state=restarted
- name: restart nginx
service: name=nginx state=restarted enabled=yes

- name: Sync content
synchronize:
src: html/
dest: /var/www/html/
handlers:
- name: restart sshd
service: name=sshd state=restarted
- name: restart nginx
service: name=nginx state=restarted enabled=yes

0 comments on commit 2358904

Please sign in to comment.