mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-04 23:44:00 -07:00
Ensure that initial setup in creating the key directory for ansible accelerate mode keys, and generation/storage of the key for a particular host are completed in a multiprocess safe manner. Creating directories/files and then assigning permissions and contents to them means that paths may exist and satisfy the os.path.exists() method in python for other processes before they are usable. Use a combination of locking around operations with use of unique named files and an OS file system move to ensure that the conditions of checking whether a file or directory exists, where it is potentially created by another thread, will only succeed when the file has both the correct contents and permissions. Fixes #13850 |
||
---|---|---|
.. | ||
module_docs_fragments | ||
__init__.py | ||
boolean.py | ||
cmd_functions.py | ||
color.py | ||
display.py | ||
encrypt.py | ||
hashing.py | ||
listify.py | ||
module_docs.py | ||
path.py | ||
shlex.py | ||
unicode.py | ||
vars.py |