Runnig roles directly via ansible or ansible-playbook

Hi,

When running roles on a set of machines, I end up writing a small playbook to specify the host pattern and roles to run. I was wondering instead of this, is there a easier method, so that this can be specified directly on command line.

For example

ansible all -r common -s

or if appropriate :

ansible-playbook all -r common, firewall

Advantages being, I don’t need to keep writing a small playbook to run a set of roles on a host pattern I already know.

No, there’s not.

The reason is often people will quickly need a series of options with ansible-playbook beyond the simple invocation you have above, and it’s important to track assignments of roles to particular hosts in source control.