Skip to content

configure host tags (labels, groups) #3502

Answered by twpayne
dpprdan asked this question in Q&A
Discussion options

You must be logged in to vote

I use boolean flags for each tag.

If you want to use an array of tags then you can use the has template function:

{{ if has "work" .tags }}
# code for all hosts with the tag "work"
{{ end }}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dpprdan
Comment options

@dpprdan
Comment options

@twpayne
Comment options

Answer selected by dpprdan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants