app/models/setting/ansible.rb in foreman_ansible-1.4.1 vs app/models/setting/ansible.rb in foreman_ansible-1.4.2
- old
+ new
@@ -55,11 +55,19 @@
),
set(
'ansible_verbosity',
N_('Foreman will add the this level of verbosity for '\
'additional debugging output when running Ansible playbooks.'),
- '0',
- N_('Default verbosity level')
+ '',
+ N_('Default verbosity level'),
+ nil,
+ :collection => lambda do
+ { '' => N_('Disabled'),
+ '1' => N_('Level 1 (-v)'),
+ '2' => N_('Level 2 (-vv)'),
+ '3' => N_('Level 3 (-vvv)'),
+ '4' => N_('Level 4 (-vvvv)') }
+ end
),
set(
'ansible_post_provision_timeout',
N_('Timeout (in seconds) to set when Foreman will trigger a '\
'play Ansible roles task after a host is fully provisioned. '\