Drop special remote_tmp casing for targets with become, instead just switch everything to use /tmp for remote tmp.

ansible picks a pretty random dir and this works with the case of users who cannot write to their homedir.
This commit is contained in:
Kevin Fenzi 2018-07-11 21:29:29 +00:00
parent cc853fb120
commit da8324764f
5 changed files with 1 additions and 17 deletions

View file

@ -12,7 +12,3 @@ csi_purpose: Provide a publicly accessible frontend for 3rd party packages (copr
csi_relationship: |
- This host provides the frontend part of copr only.
- It's the point of contact between end users and the copr build system (backend, package singer)
# We set this here because we have a task that uses become_user where the user does not
# have perms to write to their homedir. So we cannot use the default ~user/.ansible tmpdir.
ansible_remote_tmp: /tmp/.ansible-${USER}/tmp

View file

@ -7,7 +7,3 @@ csi_purpose: Provide the testing environment of copr's frontend
csi_relationship: This host is the testing environment for copr's web interface
copr_mbs_cli_login: Y29wcg==##vtvvikhcjncwkfkdcssv
# We set this here because we have a task that uses become_user where the user does not
# have perms to write to their homedir. So we cannot use the default ~user/.ansible tmpdir.
ansible_remote_tmp: /tmp/.ansible-${USER}/tmp

View file

@ -72,7 +72,3 @@ fedmsg_certs:
# we need this to log with fedmsg-logger
fedmsg_active: True
# We set this here because we have a task that uses become_user where the user does not
# have perms to write to their homedir. So we cannot use the default ~user/.ansible tmpdir.
ansible_remote_tmp: /tmp/.ansible-${USER}/tmp

View file

@ -87,7 +87,3 @@ fedmsg_active: True
# makes sure it sends stg not prod fedmsgs
fedmsg_env: stg
# We set this here because we have a task that uses become_user where the user does not
# have perms to write to their homedir. So we cannot use the default ~user/.ansible tmpdir.
#ansible_remote_tmp: /tmp/.ansible-${USER}/tmp

View file

@ -16,7 +16,7 @@ inventory = {{ ansible_base }}/ansible/inventory
#library = /usr/share/my_modules/
library = {{ ansible_base }}/ansible/library:/usr/share/ansible
#module_utils = /usr/share/my_module_utils/
#remote_tmp = ~/.ansible/tmp
remote_tmp = /tmp
#local_tmp = ~/.ansible/tmp
#forks = 5
forks = 150