fix: variable ansible_fqdn
This commit is contained in:
parent
f2e2e5f008
commit
d7bd2713c7
1 changed files with 2 additions and 2 deletions
|
@ -14,11 +14,11 @@
|
|||
- name: create a new certificate
|
||||
shell: 'certbot certonly -n --agree-tos -d {{ item.item }} -m {{ certbot_mail }} --webroot --webroot-path {{ certbot_path }} --rsa-key-size {{ certbot_key_size }}'
|
||||
with_items: '{{ st.results }}'
|
||||
when: (role == 'master' or item.item == ansible_hostname) and not item.stat.exists and ng.stat.exists
|
||||
when: (role == 'master' or item.item == ansible_fqdn) and not item.stat.exists and ng.stat.exists
|
||||
tags: certbot
|
||||
|
||||
- name: create a new certificate (standalone)
|
||||
shell: 'certbot certonly -n --agree-tos -d {{ item.item }} -m {{ certbot_mail }} --standalone --rsa-key-size {{ certbot_key_size }}'
|
||||
with_items: '{{ st.results }}'
|
||||
when: (role == 'master' or item.item == ansible_hostname) and not item.stat.exists and not ng.stat.exists
|
||||
when: (role == 'master' or item.item == ansible_fqdn) and not item.stat.exists and not ng.stat.exists
|
||||
tags: certbot
|
||||
|
|
Loading…
Add table
Reference in a new issue