On 16/05/19 6:24 PM, Ryad karkar wrote:
Hey all,

I have a lot of task in my repertory task/main.yml among them, this one :

- name: "Execut my script shell"
  script: ./script.sh
  register: result
  delegate_to: localhost

I don't want play this task, i want that when i execut my playbook with command ansible-playbook, ansible try only this task and he tell me there is any error or not.

do you understand ?

Can you help me please community ansible !! ;)


Use tags:

https://docs.ansible.com/ansible/latest/user_guide/playbooks_tags.html

-

Sudheer S

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b25f77ce-c11c-67e3-0156-13ff2219bd5d%40techchorus.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to