Skip to content

Commit

Permalink
Add certbot helper script
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Jul 18, 2024
1 parent 53d4afc commit 0186669
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ansible/roles/nginx/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
dest: /home/{{ ansible_ssh_user }}/nginx/rendered/nginx_ssl.conf
mode: "0644"

- name: Render templated certbot config
ansible.builtin.template:
src: certbot-docker.sh.j2
dest: /home/{{ ansible_ssh_user }}/nginx/rendered/certbot-docker.sh
mode: "0644"

- name: Build nginx image
community.docker.docker_image:
name: datalab-nginx
Expand Down Expand Up @@ -64,7 +70,7 @@
volumes:
- certbot-conf:/etc/letsencrypt
- certbot-www:/var/www/certbot
restart_policy: always
restart_policy: no
detach: true
entrypoint:
- /bin/sh
Expand Down

0 comments on commit 0186669

Please sign in to comment.