Skip to content

Commit

Permalink
about to break everything
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Matić committed Oct 2, 2023
1 parent fb23269 commit 9639c0d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion ansible/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@
restart: yes
ports:
- "80:3000"
- "443:3000"
- "443:3000"
mounts:
- source: /etc/letsencrypt/
target: /etc/letsencrypt/
15 changes: 12 additions & 3 deletions ansible/roles/web_servers/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,17 @@
state: started
enabled: yes

- name: create a certs directory if it doesn't exist
- name: create a letsencrypt directory if it doesn't exist
ansible.builtin.file:
path: /home/ansible/certs
path: /etc/letsencrypt/
state: directory
mode: '0755'
mode: '0755'

- name: copy lentsencrypt files from host to remote
ansible.builtin.copy:
src: /etc/letsencrypt/
dest: /etc/letsencrypt/
owner: root
group: root
mode: '0644'

0 comments on commit 9639c0d

Please sign in to comment.