Last active
January 11, 2022 20:23
-
-
Save virtualhobbit/1bf24ded55a5ea01eb63a705f3d38b25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if ansible_os_family == "Windows" %} | |
{% raw %}{{ with secret "pki/issue/mdb-lab-dot-com" "ttl=86400s" {% endraw %}"common_name={{ ansible_fqdn }}" "ip_sans={{ ansible_ip_addresses[0] }}"{% raw %} }}{% endraw %} | |
{% elif ansible_os_family == "RedHat" %} | |
{% raw %}{{ with secret "pki/issue/mdb-lab-dot-com" "ttl=86400s" {% endraw %}"common_name={{ ansible_fqdn }}" "ip_sans={{ ansible_default_ipv4.address }}"{% raw %} }}{% endraw %} | |
{% endif %} | |
{% raw %} | |
{{ .Data.certificate }} | |
{{ end }} | |
{% endraw %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gay
Birch
@@@@@@@