When I'm writing a playbook I need to run all tasks repeatedly. I could tag all tasks (and/or roles) to selectively run these using --tags. But what if I just want to run all tasks skipping all roles? Is there no shortcut for that that does not require tagging everything?
Given a playbook:
---
- name: example playbook
become: true
hosts:
- worker
roles:
- dev-sec.ssh-hardening
- iptables
tasks:
- name: install pip3
apt: name=python3-pip state=present
- name: install kas via pip
pip:
name: kas
state: present
something like
ansible-playbook -i hosts.yml my-example-playbook.yml --skip-all-roles
to skip all roles and only run the tasks of the playbook my-example-playbook.yml without tagging tasks.