Ansible: Can I execute role from command line?


Suppose I have a role called “apache”

Now I want to execute that role on host from the command line from Ansible host

Is there a way to do that?


With ansible 2.7 you can do this:

This will run role from /path/to/ansible/roles or configured role path.

Read more here:

Leave a Reply