From 6d9406e389900373d3b684775a2c746055680ef7 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 8 Apr 2018 14:26:53 -0500 Subject: [PATCH] ansible.cfg: Set remote_tmp Many hosts (should) have `/tmp` mounted with the `noexec` flag, which prevents Ansible modules written there from running. To work around this, the `remote_tmp` configuration option should be set to a path under `/var/tmp`, which is not mounted noexec. --- ansible.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible.cfg b/ansible.cfg index a0b6ba4..34dfa8f 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -8,3 +8,5 @@ fact_caching = jsonfile fact_caching_connection = .fact-cache vault_password_file = .vault-secret.sh + +remote_tmp = /var/tmp/.ansible-${USER}