Add more variables

This commit is contained in:
Ryan Cavicchioni 2019-11-27 16:43:04 -06:00
parent bd04d892f8
commit 30c8de817e
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D
2 changed files with 5 additions and 2 deletions

View File

@ -8,14 +8,15 @@ certbot_timer_name: certbot.timer
certbot_timer_state: started certbot_timer_state: started
certbot_timer_enabled: yes certbot_timer_enabled: yes
certbot_cron_state: present
certbot_cron_user: root certbot_cron_user: root
certbot_cron_file_path: /etc/cron.d/certbot certbot_cron_file_path: /etc/cron.d/certbot
certbot_cron_env: certbot_cron_env:
path: /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin path: /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
shell: /bin/sh shell: /bin/sh
certbot_cron_command: test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew certbot_cron_command: test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew
cerbot_cron_hour: "*/12" certbot_cron_hour: "*/12"
cerbot_cron_minute: "0" certbot_cron_minute: "0"
certbot_system_timer_on_calender: "*-*-* 00,12:00:00" certbot_system_timer_on_calender: "*-*-* 00,12:00:00"
certbot_system_timer_randomized_delay_sec: 43200 certbot_system_timer_randomized_delay_sec: 43200

View File

@ -74,6 +74,7 @@
job: "{{ item.value }}" job: "{{ item.value }}"
user: "{{ certbot_cron_user }}" user: "{{ certbot_cron_user }}"
cron_file: "{{ certbot_cron_file_path }}" cron_file: "{{ certbot_cron_file_path }}"
state: "{{ certbot_cron_state }}"
loop: "{{ certbot_cron_env | dict2items }}" loop: "{{ certbot_cron_env | dict2items }}"
- name: create job - name: create job
cron: cron:
@ -83,3 +84,4 @@
minute: "{{ certbot_cron_minute }}" minute: "{{ certbot_cron_minute }}"
cron_file: "{{ certbot_cron_file_path }}" cron_file: "{{ certbot_cron_file_path }}"
job: "{{ certbot_cron_command }}" job: "{{ certbot_cron_command }}"
state: "{{ certbot_cron_state }}"