Created
January 11, 2022 19:57
-
-
Save virtualhobbit/7dd25108fb231f640c78646ea1f3ddbd 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.private_key }} | |
{{ end }} | |
{% endraw %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment