handle error in ansible cli

This commit is contained in:
Colin Gagnaire 2019-10-17 18:12:17 +02:00
parent e892936f53
commit 1c1989f4ce

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;