Skip to content

Commit

Permalink
Replaced ansible_default_ipv4.address with inventory_hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
klention committed Dec 21, 2024
1 parent e4b34d3 commit c21ae15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automation/roles/tls_certificate/generate/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- name: "Gather host-specific network information"
ansible.builtin.set_fact:
san_entry: >-
DNS:{{ ansible_hostname }},DNS:{{ ansible_fqdn }},IP:{{ ansible_default_ipv4.address }}
DNS:{{ ansible_hostname }},DNS:{{ ansible_fqdn }},IP:{{ inventory_hostname }}
- block:
- name: "Aggregate all subjectAltName entries"
Expand Down

0 comments on commit c21ae15

Please sign in to comment.