Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change a directory for temporal files on a remote host? #34779

Closed
ailjushkin opened this issue Jan 12, 2018 · 4 comments
Closed

How to change a directory for temporal files on a remote host? #34779

ailjushkin opened this issue Jan 12, 2018 · 4 comments
Labels
affects_2.5 This issue/PR affects Ansible v2.5 feature This issue/PR relates to a feature request. support:core This issue/PR relates to code supported by the Ansible Engineering Team.

Comments

@ailjushkin
Copy link

ailjushkin commented Jan 12, 2018

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

become

ANSIBLE VERSION
ansible 2.4.2.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Aug 29 2016, 10:12:21) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]
CONFIGURATION

No changes.

OS / ENVIRONMENT

Control host:

Linux 02b9e1074767 4.9.60-linuxkit-aufs #1 SMP Mon Nov 6 16:00:12 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Controlled host:

Linux srv2-drse-im01.net.billing.ru 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 13 10:46:25 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux

SUMMARY

I have to work under sudo. Unfortunately, our admins set restriction on using home folders under the root. The root user cannot do anything under the home directory thus ansible says that it cannot place its files there. How to use different folder for the ansible working directory?

EXPECTED RESULTS

I change a temp ansible path and all works fine.

ACTUAL RESULTS

Permisson denied while ansible works in the ~/.ansible folder.

@ailjushkin ailjushkin changed the title How to change a directory for temporal files on a remote hosts? How to change a directory for temporal files on a remote host? Jan 12, 2018
@ansibot
Copy link
Contributor

ansibot commented Jan 12, 2018

@ailjushkin Greetings! Thanks for taking the time to open this issue. In order for the community to handle your issue effectively, we need a bit more information.

Here are the items we could not find in your description:

  • issue type
  • ansible version
  • component name

Please set the description of this issue with this template:
https://raw.githubusercontent.com/ansible/ansible/devel/.github/ISSUE_TEMPLATE.md

click here for bot help

@ansibot ansibot added affects_2.5 This issue/PR affects Ansible v2.5 needs_info This issue requires further information. Please answer any outstanding questions. needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly. needs_triage Needs a first human triage before being processed. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Jan 12, 2018
@ailjushkin
Copy link
Author

@ansibot done.

@ansibot ansibot added feature_idea and removed needs_info This issue requires further information. Please answer any outstanding questions. needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly. labels Jan 12, 2018
@sivel
Copy link
Member

sivel commented Jan 15, 2018

List Information

Hi!

Thanks very much for your interest in Ansible. It sincerely means a lot to us.

This appears to be a user question, and we'd like to direct these kinds of things to either the mailing list or the IRC channel.

If you can stop by there, we'd appreciate it. This allows us to keep the issue tracker for bugs, pull requests, RFEs and the like.

Thank you once again and we look forward to seeing you on the list or IRC. Thanks!

@sivel sivel closed this as completed Jan 15, 2018
@sivel sivel removed the needs_triage Needs a first human triage before being processed. label Jan 15, 2018
@alikins
Copy link
Contributor

alikins commented Jan 15, 2018

@ansibot ansibot added feature This issue/PR relates to a feature request. and removed feature_idea labels Mar 3, 2018
@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.5 This issue/PR affects Ansible v2.5 feature This issue/PR relates to a feature request. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

No branches or pull requests

4 participants