diff --git a/centreon-plugins/apps/automation/ansible/cli/custom/cli.pm b/centreon-plugins/apps/automation/ansible/cli/custom/cli.pm index ea795df48..c55438bde 100644 --- a/centreon-plugins/apps/automation/ansible/cli/custom/cli.pm +++ b/centreon-plugins/apps/automation/ansible/cli/custom/cli.pm @@ -99,7 +99,8 @@ sub execute { sudo => $self->{option_results}->{sudo}, command => $self->{option_results}->{command}, command_path => $self->{option_results}->{command_path}, - command_options => $options{cmd_options} + command_options => $options{cmd_options}, + no_errors => { 4 => 1 } ); my $raw_results;