handle error in ansible cli

This commit is contained in:
Colin Gagnaire 2019-10-17 18:12:17 +02:00
parent 19a57926d2
commit 08b3c39e3b
1 changed files with 2 additions and 1 deletions

View File

@ -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;