Skip to content

Commit

Permalink
Merge pull request debops#17 from htgoebel/master
Browse files Browse the repository at this point in the history
Create /etc/cron.d only if required.
  • Loading branch information
drybjed committed Mar 1, 2015
2 parents b012294 + 04a53b9 commit 0e710c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tasks/manage_pki_realms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
state: directory
name: /etc/cron.d
mode: 0755
when: pki_dhparams_regenerate

- name: Regenerate Diffie-Hellman parameters periodically
cron:
Expand All @@ -44,14 +45,14 @@
user: 'root'
job: 'cd {{ pki_base_path }} ; make regenerate-dhparams > /dev/null 2>&1'
cron_file: 'pki-regenerate-dhparams'
when: pki_dhparams_regenerate is defined and pki_dhparams_regenerate
when: pki_dhparams_regenerate

- name: Disable periodic DHparams regeneration
cron:
name: 'Regenerate Diffie-Hellman parameters in all PKI realms'
cron_file: 'pki-regenerate-dhparams'
state: 'absent'
when: pki_dhparams_regenerate is defined and not pki_dhparams_regenerate
when: not pki_dhparams_regenerate|bool

- name: Create realm source directories
file:
Expand Down

0 comments on commit 0e710c5

Please sign in to comment.