inserted 'fqdn' variable so use of inventory hostname as a fully qualified domain name for managed node or target host services could be overridden
This commit is contained in:
@@ -38,10 +38,10 @@
|
||||
- name: Exemplifying needed ACME record
|
||||
ansible.builtin.set_fact:
|
||||
acme_record: |
|
||||
{{ inventory_hostname }} IN A {{ ipify_public_ip }}
|
||||
_acme-challenge.{{ inventory_hostname }} IN CNAME {{ inventory_hostname }}.acme.{{ inventory_hostname }}.
|
||||
acme.{{ inventory_hostname }} IN NS ns.acme.{{ inventory_hostname }}.
|
||||
ns.acme.{{ inventory_hostname }} IN A {{ ipify_public_ip }}
|
||||
{{ fqdn | default(inventory_hostname) }} IN A {{ ipify_public_ip }}
|
||||
_acme-challenge.{{ fqdn | default(inventory_hostname) }} IN CNAME {{ fqdn | default(inventory_hostname) }}.acme.{{ fqdn | default(inventory_hostname) }}.
|
||||
acme.{{ fqdn | default(inventory_hostname) }} IN NS ns.acme.{{ fqdn | default(inventory_hostname) }}.
|
||||
ns.acme.{{ fqdn | default(inventory_hostname) }} IN A {{ ipify_public_ip }}
|
||||
- name: Informing user of need to set up ACME record
|
||||
ansible.builtin.debug:
|
||||
msg: "Please set ACME record in domain name provider:\n {{ acme_record }}"
|
||||
|
||||
Reference in New Issue
Block a user