Files
ansible/tags.md

249 B

Tags

Filter tasks using tags:

tasks:
  - name: Restart service
    service:
      name: apache2
      state: restarted
    tags:
      - service
      - restart

# Run with specific tags:
# ansible-playbook site.yml --tags "service"