Compare commits

..

2 Commits

Author SHA1 Message Date
3ca199ed20
Fix gitea log directory permissions 2019-11-27 16:43:45 -06:00
30c8de817e
Add more variables 2019-11-27 16:43:31 -06:00
3 changed files with 6 additions and 3 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 }}"

View File

@ -63,7 +63,7 @@
path: "{{ gitea_log_path }}" path: "{{ gitea_log_path }}"
owner: "{{ gitea_user }}" owner: "{{ gitea_user }}"
group: "{{ gitea_group }}" group: "{{ gitea_group }}"
mode: 755 mode: 0755
state: directory state: directory
- name: configure systemd unit - name: configure systemd unit