~sirn/ansible-openbsd

675eea8bf6c31129b2f507350c9dac23be2c0e9b — Kridsada Thanabulpong 9 months ago b440fdb
Run postcmd as part of dehydrated initial cert
1 files changed, 6 insertions(+), 0 deletions(-)

M openbsd-dehydrated/tasks/main.yml
M openbsd-dehydrated/tasks/main.yml => openbsd-dehydrated/tasks/main.yml +6 -0
@@ 120,6 120,12 @@
      --hook /etc/dehydrated/hook.sh \
      --challenge dns-01 \
      --cron
    {% for postcmd in dehydrated_postcmds %}

    ( # postcmd-{{loop.index}}
      {{postcmd|trim|indent(2)}}
    ) || exit 1
    {% endfor %}
  environment: "{{dehydrated_lexicon_config}}"
  register: letsencrypt_initial_cert
  changed_when: letsencrypt_initial_cert.stdout.find("unchanged_cert") == -1