Files
pkgsrc-ng/sysutils/ansible/patches/patch-examples_ansible
2016-11-18 22:39:22 +01:00

63 lines
2.5 KiB
Plaintext

$NetBSD: patch-examples_ansible,v 1.1 2016/02/17 20:31:45 he Exp $
Fix hardcoded paths to be replaced with SUBST framework.
--- examples/ansible.cfg.orig 2015-06-25 20:39:08.000000000 +0000
+++ examples/ansible.cfg
@@ -4,15 +4,15 @@
# nearly all parameters can be overridden in ansible-playbook
# or with command line flags. ansible will read ANSIBLE_CONFIG,
# ansible.cfg in the current working directory, .ansible.cfg in
-# the home directory or /etc/ansible/ansible.cfg, whichever it
+# the home directory or @PKG_SYSCONFDIR@/ansible/ansible.cfg, whichever it
# finds first
[defaults]
# some basic default values...
-inventory = /etc/ansible/hosts
-#library = /usr/share/my_modules/
+inventory = @PKG_SYSCONFDIR@/ansible/hosts
+#library = @PREFIX@/share/my_modules/
remote_tmp = $HOME/.ansible/tmp
pattern = *
forks = 5
@@ -33,7 +33,7 @@ module_lang = C
gathering = implicit
# additional paths to search for roles in, colon separated
-#roles_path = /etc/ansible/roles
+#roles_path = @PKG_SYSCONFDIR@/ansible/roles
# uncomment this to disable SSH key host checking
#host_key_checking = False
@@ -55,7 +55,7 @@ timeout = 10
# if so defined, consider logrotate
#log_path = /var/log/ansible.log
-# default module name for /usr/bin/ansible
+# default module name for @PREFIX@/bin/ansible
#module_name = command
# use this shell for commands executed under sudo
@@ -112,12 +112,12 @@ ansible_managed = Ansible managed: {file
# set plugin path directories here, separate with colons
-action_plugins = /usr/share/ansible_plugins/action_plugins
-callback_plugins = /usr/share/ansible_plugins/callback_plugins
-connection_plugins = /usr/share/ansible_plugins/connection_plugins
-lookup_plugins = /usr/share/ansible_plugins/lookup_plugins
-vars_plugins = /usr/share/ansible_plugins/vars_plugins
-filter_plugins = /usr/share/ansible_plugins/filter_plugins
+action_plugins = @PREFIX@/share/ansible_plugins/action_plugins
+callback_plugins = @PREFIX@/share/ansible_plugins/callback_plugins
+connection_plugins = @PREFIX@/share/ansible_plugins/connection_plugins
+lookup_plugins = @PREFIX@/share/ansible_plugins/lookup_plugins
+vars_plugins = @PREFIX@/share/ansible_plugins/vars_plugins
+filter_plugins = @PREFIX@/share/ansible_plugins/filter_plugins
# by default callbacks are not loaded for /bin/ansible, enable this if you
# want, for example, a notification or logging callback to also apply to