diff --git a/apps/automation/ansible/cli/custom/cli.pm b/apps/automation/ansible/cli/custom/cli.pm index 508a9a09d..ea795df48 100644 --- a/apps/automation/ansible/cli/custom/cli.pm +++ b/apps/automation/ansible/cli/custom/cli.pm @@ -40,16 +40,16 @@ sub new { if (!defined($options{noptions})) { $options{options}->add_options(arguments => { - "hostname:s" => { name => 'hostname' }, - "remote" => { name => 'remote' }, - "ssh-option:s@" => { name => 'ssh_option' }, - "ssh-path:s" => { name => 'ssh_path' }, - "ssh-command:s" => { name => 'ssh_command', default => 'ssh' }, - "timeout:s" => { name => 'timeout', default => 50 }, - "sudo" => { name => 'sudo' }, - "command:s" => { name => 'command', default => 'ANSIBLE_LOAD_CALLBACK_PLUGINS=true ANSIBLE_STDOUT_CALLBACK=json ansible' }, - "command-path:s" => { name => 'command_path' }, - "command-options:s" => { name => 'command_options', default => '' }, + 'hostname:s' => { name => 'hostname' }, + 'remote' => { name => 'remote' }, + 'ssh-option:s@' => { name => 'ssh_option' }, + 'ssh-path:s' => { name => 'ssh_path' }, + 'ssh-command:s' => { name => 'ssh_command', default => 'ssh' }, + 'timeout:s' => { name => 'timeout', default => 50 }, + 'sudo' => { name => 'sudo' }, + 'command:s' => { name => 'command', default => 'ANSIBLE_LOAD_CALLBACK_PLUGINS=true ANSIBLE_STDOUT_CALLBACK=json ansible' }, + 'command-path:s' => { name => 'command_path' }, + 'command-options:s' => { name => 'command_options', default => '' }, }); } $options{options}->add_help(package => __PACKAGE__, sections => 'CLI OPTIONS', once => 1); diff --git a/apps/automation/ansible/cli/mode/discovery.pm b/apps/automation/ansible/cli/mode/discovery.pm index e57db4735..b530b585b 100644 --- a/apps/automation/ansible/cli/mode/discovery.pm +++ b/apps/automation/ansible/cli/mode/discovery.pm @@ -32,8 +32,8 @@ sub new { bless $self, $class; $options{options}->add_options(arguments => { - "host-pattern:s" => { name => 'host_pattern', default => 'all' }, - "prettify" => { name => 'prettify' }, + 'host-pattern:s' => { name => 'host_pattern', default => 'all' }, + 'prettify' => { name => 'prettify' }, }); return $self; diff --git a/apps/automation/ansible/tower/custom/towercli.pm b/apps/automation/ansible/tower/custom/towercli.pm index e9765447c..cb802f56c 100644 --- a/apps/automation/ansible/tower/custom/towercli.pm +++ b/apps/automation/ansible/tower/custom/towercli.pm @@ -40,15 +40,15 @@ sub new { if (!defined($options{noptions})) { $options{options}->add_options(arguments => { - "host:s" => { name => 'host' }, - "username:s" => { name => 'username' }, - "password:s" => { name => 'password' }, - "timeout:s" => { name => 'timeout', default => 50 }, - "sudo" => { name => 'sudo' }, - "command:s" => { name => 'command', default => 'tower-cli' }, - "command-path:s" => { name => 'command_path' }, - "command-options:s" => { name => 'command_options', default => '' }, - "proxyurl:s" => { name => 'proxyurl' }, + 'host:s' => { name => 'host' }, + 'username:s' => { name => 'username' }, + 'password:s' => { name => 'password' }, + 'timeout:s' => { name => 'timeout', default => 50 }, + 'sudo' => { name => 'sudo' }, + 'command:s' => { name => 'command', default => 'tower-cli' }, + 'command-path:s' => { name => 'command_path' }, + 'command-options:s' => { name => 'command_options', default => '' }, + 'proxyurl:s' => { name => 'proxyurl' }, }); } $options{options}->add_help(package => __PACKAGE__, sections => 'TOWERCLI OPTIONS', once => 1); diff --git a/apps/automation/ansible/tower/mode/discovery.pm b/apps/automation/ansible/tower/mode/discovery.pm index 4a8a8ce37..c761582f4 100644 --- a/apps/automation/ansible/tower/mode/discovery.pm +++ b/apps/automation/ansible/tower/mode/discovery.pm @@ -32,9 +32,9 @@ sub new { bless $self, $class; $options{options}->add_options(arguments => { - "group" => { name => 'group' }, - "inventory" => { name => 'inventory' }, - "prettify" => { name => 'prettify' }, + 'group' => { name => 'group' }, + 'inventory' => { name => 'inventory' }, + 'prettify' => { name => 'prettify' }, }); return $self;