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

plugin does not account for local_tmp configuration #16

Closed
greenpau opened this issue Jun 30, 2018 · 0 comments
Closed

plugin does not account for local_tmp configuration #16

greenpau opened this issue Jun 30, 2018 · 0 comments

Comments

@greenpau
Copy link
Owner

Noticed that the plugin does account for local_tmp directory.

Thus, although Ansible configuration file has the following config, the plugin still creates temporary files under $HOME/.ansible/tmp.

local_tmp             = ./.ansible/tmp/

This issue stems from the following code: https://github.com/greenpau/ndmtk/blob/master/ndmtk/plugins/action/ndmtk.py#L390-L398

        self.conf['temp_dir'] = os.path.join(os.getenv("HOME"), '.ansible', 'tmp', self.plugin_name, self.conf['play_uuid'], self.conf['task_uuid'], self.info['host']);

Ansible reference: https://docs.ansible.com/ansible/latest/reference_appendices/config.html#default-local-tmp

@greenpau greenpau changed the title plugin does not account for local_tmp configu plugin does not account for local_tmp configuration Jul 2, 2018
greenpau added a commit that referenced this issue Jul 2, 2018
greenpau added a commit that referenced this issue Jul 2, 2018
More info: Additionally, follows local_tmp configuration parameter,
when applicable.

Resolves: #16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant