2022-12-26 12:25:32 +01:00
|
|
|
---
|
2023-02-06 23:12:54 +01:00
|
|
|
- name: "Dehydrated | Accept TOS"
|
2022-12-26 12:25:32 +01:00
|
|
|
ansible.builtin.command: dehydrated --register --accept-terms
|
|
|
|
|
2023-04-11 21:38:48 +02:00
|
|
|
# https://github.com/dehydrated-io/dehydrated/blob/master/docs/domains_txt.md
|
2023-02-06 23:12:54 +01:00
|
|
|
- name: "Dehydrated | Create domains.txt"
|
2022-12-26 12:25:32 +01:00
|
|
|
ansible.builtin.file:
|
|
|
|
path: /etc/dehydrated/domains.txt
|
|
|
|
state: touch
|
2023-04-11 21:24:13 +02:00
|
|
|
mode: "0644"
|
2023-04-11 21:38:48 +02:00
|
|
|
|
|
|
|
- name: "Dehydrated | Create domains directory"
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: /etc/dehydrated/domains.txt.d
|
|
|
|
state: directory
|
|
|
|
mode: "0755"
|
|
|
|
|
|
|
|
- name: Dehydrated | Create cron job
|
|
|
|
ansible.builtin.cron:
|
|
|
|
name: "{{ dehydrated_cron_name }}"
|
|
|
|
hour: "{{ dehydrated_cron_hour }}"
|
|
|
|
minute: "{{ dehydrated_cron_minute }}"
|
|
|
|
user: "{{ dehydrated_cron_user }}"
|
|
|
|
job: "chronic dehydrated --cron -g"
|