Get rid of fake error logs

0 votes
While executing ansible playbooks, sometimes a few shell commands give error message while in reality they got executed without any problem. How to get rid of these fake error logs?
Feb 7, 2019 in Ansible by Jeena

1 answer to this question.

0 votes

These two modules : failed_when and changed_when can help you. 

- shell: echo good | grep bad
  register: res
  failed_when: false
  changed_when: false
answered Feb 7, 2019 by Pragya

Related Questions In Ansible

0 votes
1 answer

How do I get a list of all Ansible variables?

Ansible by default gathers facts about machines ...READ MORE

answered Jan 30, 2019 in Ansible by Mahir
0 votes
1 answer

Error saying "ERROR: ec2_vpc_subnet is not a legal parameter of an Ansible Play"

ec2_vpc_subnet is support from Ansible version 2.0 and ...READ MORE

answered Feb 8, 2019 in Ansible by Dee
0 votes
1 answer

Error while running playbook consisting of roles - Ansible

You get this error because ansible was ...READ MORE

answered Mar 12, 2019 in Ansible by William
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
0 votes
1 answer

How to get details of playbook executions

Run these commands to enable logging before ...READ MORE

answered Jan 21, 2019 in Ansible by Tanishq