Skip to content

Commit

Permalink
added note about fakeroot (ansible#71018)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoca authored Aug 3, 2020
1 parent a0523e5 commit 11a31e9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/docsite/rst/reference_appendices/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,20 @@ There are a few common errors that one might run into when trying to execute Ans
zos1 ansible_shell_executable=/usr/lpp/bash/bin/bash


Running under fakeroot
----------------------

Some issues arise as ``fakeroot`` does not create a full nor POSIX compliant system by default.
It is known that it will not correctly expand the default tmp directory Ansible uses (:file:`~/.ansible/tmp`).
If you see module failures, this is likely the problem.
The simple workaround is to set ``remote_tmp`` to a path that will expand correctly (see documentation of the shell plugin you are using for specifics).

For example, in the ansible config file (or via environment variable) you can set::

remote_tmp=$HOME/.ansible/tmp



.. _use_roles:

What is the best way to make content reusable/redistributable?
Expand Down

0 comments on commit 11a31e9

Please sign in to comment.