It there any difference of using Tags on Linux server Playbook and Windows server Playbook ?

13 views
Skip to first unread message

Muhammad Chughtai

unread,
Jul 28, 2019, 6:57:33 PM7/28/19
to Ansible Project
I am using 2 tags in a playbook to manage Linux server and I want to use same tags in a Playbook to manage Windows server. Is there be any difference in mentioning Tags in Window playbook i.e 
-Package = Yes
-Configuration = yes



Linux playbook
    Tags: 
           - configuration
           - packages

Window playbook
     Tags:
            - Configuration = yes
            - Package

Dick Visser

unread,
Jul 29, 2019, 1:09:48 AM7/29/19
to ansible...@googlegroups.com
According to the docs at
https://docs.ansible.com/ansible/latest/playbooks_tags.html tags are used to filter tasks or playbooks from the command line. 
If that’s what you mean by “manage” then great. 
Tags are just strings (i.e. “configuration”), but what you’re doing (“configuration = Yes”) is a key-value. It sounds as though you’re trying to supply a variable?

Instead of guessing what you mean from ambiguous and incomplete information, please tell clearly:

- what are you trying to achieve
- how are you doing this
- what does the relevant task/playbook/code/variables look like?



Thx!

--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e5de566e-aa68-41f3-a6a2-54f18649cd80%40googlegroups.com.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.
Reply all
Reply to author
Forward
0 new messages