Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
2 views
in DevOps and Agile by (47.6k points)

How to ignore failed commands in Ansible?

1 Answer

0 votes
by (106k points)

To ignore failed command in ansible you can write a task to ignore errors use the below-mentioned way:

- name: this will not be counted as a failure

  command: /bin/false

  ignore_errors: yes

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...