Run tasks in playbook for the given tags

ansible-playbook

  • Execute tasks defined in playbook on remote machines over SSH.
    More information: <https://docs.ansible.com/ansible/latest/cli/ansible-playbook.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

ansible-playbook {{playbook}} --tags {{tag1,tag2}}

click the source code to copy install ansible-playbook on any operating system with command-not-found.com