Skip to content

Instantly share code, notes, and snippets.

@mageddo
Created January 7, 2019 19:02
Show Gist options
  • Save mageddo/bed09cac548b64c9e252ab464db8d0ac to your computer and use it in GitHub Desktop.
Save mageddo/bed09cac548b64c9e252ab464db8d0ac to your computer and use it in GitHub Desktop.
Executing only tagged tasks
# roles/common/tasks/main.yml
---
- import_tasks: tasks.yml
when: tasks | default('no') | bool
- name: My Playbook
hosts: all
vars:
tasks: true
remote_user: root
become: false
roles:
- common
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment