Working With Tags In Ansible
Assigning tags to specific tasks in playbooks allows you to only call certain tasks in a very long playbook
- Navigate to /home/ec2-user/ansible directory
- Let’s make some changes in setup-app.yml, please refer this link
- Now run following command
ansible-playbook setup-app.yml --tags upload
- This will only run upload task of our playbook