Hi
How can I use/configure requirements.yml? I have configured roles for all 3 groups , one role for each group. Inside every role/tasks/main.yml I have include file
- include: status check playbook.yml
Master playbook is as below:
Hi
How can I use/configure requirements.yml? I have configured roles for all 3 groups , one role for each group. Inside every role/tasks/main.yml I have include file
Master playbook is as below:
you can add pretask and post task within your master playbook:
Thanks Soniya.
Actually there are three playbooks which are required to be checked out from subversion and play after every role called in master playbook. Every role has status check play book in it. So if I use post tasks as a method as you said, means after every role there will be post tasks? Lets say in future if there will be 20 roles 20 post tasks. Can we add post tasks(playbooks from subversion) somehow inside roles? Or place post tasks in top level dirctory to be used by all roles somehow?
Thanks.
Can we add post tasks(playbooks from subversion) somehow inside roles? Or place post tasks in top level dirctory to be used by all roles somehow?
Yes, we can do that by defining dependency in main.yml in meta directory.
Example:
#meta/main.yml
Dependencies:
- ansiblr-role