mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-01 16:54:35 +01:00
27 lines
764 B
YAML
27 lines
764 B
YAML
- name: install certbot
|
|
pacman:
|
|
name: [certbot,certbot-nginx]
|
|
state: present
|
|
when: run_once_nginx_certbot is not defined
|
|
|
|
- name: configure certbot.service.tpl
|
|
template:
|
|
src: certbot.service.j2
|
|
dest: /etc/systemd/system/certbot.service
|
|
notify: reload certbot service
|
|
when: run_once_nginx_certbot is not defined
|
|
|
|
- name: configure certbot.timer.tpl
|
|
template:
|
|
src: certbot.timer.j2
|
|
dest: /etc/systemd/system/certbot.timer
|
|
register: certbot_timer
|
|
changed_when: certbot_timer.changed or activate_all_timers | bool
|
|
notify: restart certbot timer
|
|
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
|