diff --git a/tasks/configure_certificates.yml b/tasks/configure_certificates.yml index 0d67d0a..a3fee28 100644 --- a/tasks/configure_certificates.yml +++ b/tasks/configure_certificates.yml @@ -3,7 +3,11 @@ uri: url: http://checkip.dyndns.org return_content: true - register: node_external_ip + register: checkip_url + +- name: Extract IP from URL content + set_fact: + node_external_ip: checkip_url | regex_search('[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}') - name: Set fact for mail server FQDN set_fact: