Suppose I have a role called \"apache\"
Now I want to execute that role on host 192.168.0.10 from the command line from Ansible host
ansible-playbook
I am not aware of this feature, but you can use tags to just run one role from your playbook.
roles: - {role: 'mysql', tags: 'mysql'} - {role: 'apache', tags: 'apache'} ansible-playbook webserver.yml --tags "apache"