Skip to content

Commit

Permalink
Simplify conditions.
Browse files Browse the repository at this point in the history
pki_dhparams_regenerate is always defined via defaults/main.yml.
  • Loading branch information
htgoebel committed Mar 1, 2015
1 parent a05a3f2 commit 04a53b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/manage_pki_realms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,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 04a53b9

Please sign in to comment.