mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Refactored nginx-cert-deploy-to-docker in preparation for nginx
This commit is contained in:
30
roles/nginx-docker-cert-deploy/tasks/main.yml
Normal file
30
roles/nginx-docker-cert-deploy/tasks/main.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
- name: add nginx-docker-cert-deploy.sh
|
||||
copy:
|
||||
src: "nginx-docker-cert-deploy.sh"
|
||||
dest: "{{nginx_docker_cert_deploy_script}}"
|
||||
when: run_once_nginx_docker_cert_deploy is not defined
|
||||
|
||||
- name: run the nginx_docker_cert_deploy tasks once
|
||||
set_fact:
|
||||
run_once_backup_directory_validator: true
|
||||
when: run_once_nginx_docker_cert_deploy is not defined
|
||||
|
||||
- name: "create {{cert_mount_directory}}"
|
||||
file:
|
||||
path: "{{cert_mount_directory}}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: configure nginx-docker-cert-deploy.cymais.service
|
||||
template:
|
||||
src: "nginx-docker-cert-deploy.service.j2"
|
||||
dest: "/etc/systemd/system/nginx-docker-cert-deploy.{{docker_compose_project_name}}.cymais.service"
|
||||
notify: restart nginx-docker-cert-deploy.cymais.service
|
||||
|
||||
- name: "include role for systemd-timer for {{service_name}}"
|
||||
include_role:
|
||||
name: systemd-timer
|
||||
vars:
|
||||
on_calendar: "{{on_calendar_deploy_certificates}}"
|
||||
service_name: "nginx-docker-cert-deploy.{{docker_compose_project_name}}"
|
||||
persistent: "true"
|
Reference in New Issue
Block a user