So i am having a structure like roles/base/tasks/main.yml & another file right above the roles/ directory with name base.yml which basically calls the base role. My problem is this, ansible docs suggest
roles:
- { role: webserver, port: 5000, tags: [ 'web', 'foo' ] }
to call the main.yml if i have a tag defined as 'web'. I tried it but it didn't work & yes i saw a post on reddit too ---> https://www.reddit.com/r/ansible/comments/3628s8/question_about_using_tags_in_roles/
Soo is there a WAY to call tags defined in a role using .yml instead of the adhoc command , coz my deployment strategies don't allow me to run a adhoc command