app/models/setting/ansible.rb in foreman_ansible-2.0.4 vs app/models/setting/ansible.rb in foreman_ansible-2.1.0

- old
+ new

@@ -61,9 +61,19 @@ 'play Ansible roles task after a host is fully provisioned. '\ 'Set this to the maximum time you expect a host to take until'\ ' it is ready after a reboot.'), '360', N_('Post-provision timeout') + ), + set( + 'top_level_ansible_vars', + N_('Whether to put Ansible parameters in the "hostvars" '\ + 'top-level key of the inventory. By default it is true, so '\ + 'that Host Parameters can be used directly in the playbooks.'\ + 'When false, Host Parameters can only be accessed through'\ + 'foreman_params["host_parameter"] in the playbooks.'), + true, + N_('Top level Ansible variables') ) ].compact.each do |s| create(s.update(:category => 'Setting::Ansible')) end end