How to run a specific script of a role in playbook?

Hi,

How could I run just a specified script rather than the whole role? Appreciate your advice.

  • hosts: ‘*’
    roles:
  • { role: installation_role/common.yml }

Thank you.

Kind regards,

  • j

Did you try to google it?
For example: https://stackoverflow.com/questions/23945201/how-to-run-only-one-task-in-ansible-playbook