Working With Tags In Ansible

0 35

Assigning tags to specific tasks in playbooks allows you to only call certain tasks in a very long playbook

  1. Navigate to /home/ec2-user/ansible directory
  2. Let’s make some changes in setup-app.yml, please refer this link
  3. Now run following command
    ansible-playbook setup-app.yml --tags upload
  4. This will only run upload task of our playbook

Leave A Reply

Your email address will not be published.