Skip to content
Snippets Groups Projects
Commit c6601fe2 authored by ale's avatar ale
Browse files

Fix check mode for float-util-public-ssl-cert

Fixes issue #99.
parent ee1a743e
No related branches found
No related tags found
No related merge requests found
...@@ -21,9 +21,11 @@ ...@@ -21,9 +21,11 @@
creates: "/etc/credentials/public/{{ cn }}/fullchain.pem" creates: "/etc/credentials/public/{{ cn }}/fullchain.pem"
register: ssl_cert_selfsigned register: ssl_cert_selfsigned
# Don't run the following task in check mode, since the file will not
# have been created in that case.
- file: - file:
path: "/etc/credentials/public/{{ cn }}/privkey.pem" path: "/etc/credentials/public/{{ cn }}/privkey.pem"
owner: root owner: root
group: public-credentials group: public-credentials
mode: 0640 mode: 0640
when: ssl_cert_selfsigned.changed when: "ssl_cert_selfsigned.changed and not ansible_check_mode"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment