John Oliver <[email protected]> napisał:
>I'd like to have SSL certificates uploaded and configured according to 
>hostname, ie. host1 gets the cert and key for host1, etc.
>
>It seems like the easiest way is to set a variable to equal 
>ansible_hostname, but I'd need a way to handle exceptions, so if 
>ansible_hostname isn't one of an expected set of values, the variable
>could 
>be set to some default value.  What would be the best way to accomplish
>
>something like this?

Try something like {{ ansible_hostname if ansible_hostname in 
list_of_expected_values else the_default }}
-- 
Wysłane za pomocą K-9 Mail.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/57f89649-dc5e-4737-85c2-e0c76666e6e2%40email.android.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to