mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Renamed server roles by osi they work on
This commit is contained in:
31
roles/srv-web-6-6-tls-renew/tasks/main.yml
Normal file
31
roles/srv-web-6-6-tls-renew/tasks/main.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
- name: install certbot
|
||||
pacman:
|
||||
name:
|
||||
- certbot-nginx
|
||||
state: present
|
||||
when: run_once_nginx_certbot is not defined
|
||||
|
||||
- name: configure srv-web-6-6-tls-renew.cymais.service
|
||||
template:
|
||||
src: srv-web-6-6-tls-renew.service.j2
|
||||
dest: /etc/systemd/system/srv-web-6-6-tls-renew.cymais.service
|
||||
notify: reload certbot service
|
||||
when: run_once_nginx_certbot is not defined
|
||||
|
||||
- name: "set 'service_name' to '{{ role_name }}'"
|
||||
set_fact:
|
||||
service_name: "{{ role_name }}"
|
||||
when: run_once_nginx_certbot is not defined
|
||||
|
||||
- name: "include role for gen-timer for {{service_name}}"
|
||||
include_role:
|
||||
name: gen-timer
|
||||
vars:
|
||||
on_calendar: "{{on_calendar_renew_lets_encrypt_certificates}}"
|
||||
persistent: "true"
|
||||
when: run_once_nginx_certbot is not defined
|
||||
|
||||
- name: run the nginx_certbot tasks once
|
||||
set_fact:
|
||||
run_once_nginx_certbot: true
|
||||
when: run_once_nginx_certbot is not defined
|
Reference in New Issue
Block a user