puppet-ansible/templates/ansible.cfg.erb
Colleen Murphy a88ed42898 Fix template variables for puppet 4
On puppet 4, undef will stop evaluating to :undef in the templates and
instead start evaluating to nil, so check for both to cover our bases.

Change-Id: I6e446cf1a15c9cc5e24f93e755fa3000298f7caa
2018-07-25 11:39:34 +02:00

13 lines
433 B
Plaintext

[defaults]
hostfile=<%= @ansible_hostfile %>
library=/usr/share/ansible
log_path=/var/log/ansible.log
callback_plugins=<%= @ansible_callback_plugins_path %>
roles_path=<%= @ansible_roles_path %>
<% if ! [nil, :undef].include?(@retry_files_enabled) -%>
retry_files_enabled=<%= @retry_files_enabled %>
<% end -%>
<% if ! [nil, :undef].include?(@retry_files_save_path) -%>
retry_files_save_path=<%= @retry_files_save_path %>
<% end -%>