Skip to content

Commit

Permalink
fix dns-01-lexicon.yml not included (#8)
Browse files Browse the repository at this point in the history
Include dns-01-lexicon.yml only depending on dehydrated_use_lexicon.
default vaule for dehydrated_use_lexicon is changed to depend on
dehydrated_challengetype (true if dns-01).
  • Loading branch information
azielke committed Jul 13, 2019
1 parent 9bf61fa commit 5b45012
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dehydrated_install_root | Where to install dehydrated | /opt/dehydrated
dehydrated_update | Update dehydrated sources on ansible run | yes
dehydrated_version | Which version to check out from github | HEAD
dehydrated_challengetype | Challenge to use (http-01, dns-01) | http-01
dehydrated_use_lexicon | Use lexicon if challengetype is dns-01 | yes
dehydrated_use_lexicon | Enable the use of lexicon | yes if dehydrated_challengetype == dns-01 else no
dehydrated_lexicon_dns | Options for running lexicon | {}
dehydrated_hooks | Dict with hook-names for which to add scripts |
dehydrated_hook_scripts | Add additional scripts to hooks-Directory | []
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dehydrated_key_algo: rsa
dehydrated_keysize: 4096
dehydrated_ca: "https://acme-v02.api.letsencrypt.org/directory"
dehydrated_cronjob: yes
dehydrated_use_lexicon: yes
dehydrated_use_lexicon: "{{ dehydrated_challengetype == 'dns-01' }}"
dehydrated_run_on_changes: yes
dehydrated_systemd_timer: no
dehydrated_hook_scripts: []
Expand Down
1 change: 0 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
- name: Include dns-01-lexicon.yml
include_tasks: dns-01-lexicon.yml
when:
- dehydrated_challengetype == 'dns-01'
- dehydrated_use_lexicon

- name: Install cronjob
Expand Down

0 comments on commit 5b45012

Please sign in to comment.