Skip to content

Commit

Permalink
Fetch machine's IP from variable inventory_hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
klention committed Dec 21, 2024
1 parent 444cf71 commit da78fd7
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 }},{% for p in ansible_facts.all_ipv4_addresses %}IP:{{ p }}{% if not loop.last %},{% endif %}{% endfor %}
DNS:{{ ansible_hostname }},DNS:{{ ansible_fqdn }},IP:{{ inventory_hostname }}
- block:
- name: "Aggregate all subjectAltName entries"
Expand Down

0 comments on commit da78fd7

Please sign in to comment.