Small fixes
This commit is contained in:
parent
acc6fd8afd
commit
73a730494c
1 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
- name: Get local public IP
|
- name: Get local public IP
|
||||||
ansible.builtin.uri:
|
ansible.builtin.uri:
|
||||||
url: https://ipinfo.io/ip
|
url: "https://ipinfo.io/ip"
|
||||||
return_content: true
|
return_content: true
|
||||||
register: local_public_ip
|
register: local_public_ip
|
||||||
|
|
||||||
|
@ -20,11 +20,11 @@
|
||||||
target_public_ip: "{{ lookup('community.general.dig', add_cert_domain, '@1.1.1.1') }}"
|
target_public_ip: "{{ lookup('community.general.dig', add_cert_domain, '@1.1.1.1') }}"
|
||||||
|
|
||||||
- name: Deploy letsencrypt certificate (HTTP-01)
|
- name: Deploy letsencrypt certificate (HTTP-01)
|
||||||
when: local_public_ip == target_public_ip
|
when: local_public_ip.content == target_public_ip
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
name: add_cert_http_01
|
name: add_cert_http_01
|
||||||
|
|
||||||
- name: Deploy letsencrypt certificate (DNS-01)
|
- name: Deploy letsencrypt certificate (DNS-01)
|
||||||
when: local_public_ip != target_public_ip
|
when: local_public_ip.content != target_public_ip
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
name: add_cert_dns_01
|
name: add_cert_dns_01
|
||||||
|
|
Loading…
Reference in a new issue