community.general/lib/ansible/module_utils/common
Dag Wieers e152b277cf Use locking for concurrent file access (#52567)
* Use locking for concurrent file access

This implements locking to be used for modules that are used for
concurrent file access, like lineinfile or known_hosts.

* Reinstate lock_timeout

This commit includes:
- New file locking infrastructure for modules
- Enable timeout tests
- Madifications to support concurrency with lineinfile

* Rebase, update changelog and tests

We need to specify ansible_python_interpreter to avoid running interpreter discovery and selecting the incorrect interpreter.

Remove the import of lock in known_hosts since it is not used.
2019-03-27 20:20:18 -04:00
..
text Move type checking methods out of basic.py and add unit tests (#53687) 2019-03-21 09:40:19 -04:00
__init__.py Add boilderplate to remove a module but keep documentation. 2018-01-26 15:20:36 -08:00
_collections_compat.py Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00
_json_compat.py Move type checking methods out of basic.py and add unit tests (#53687) 2019-03-21 09:40:19 -04:00
_utils.py Cleanups to the common.sys_info API 2019-01-03 16:21:09 -08:00
collections.py Add a CLIArgs Singleton class that will hold the parse cli arguments 2019-01-03 18:12:23 -08:00
dict_transformations.py Fix pycodestyle E117 issues. 2019-02-13 23:35:39 -08:00
file.py Use locking for concurrent file access (#52567) 2019-03-27 20:20:18 -04:00
network.py To ipv6 network (#48572) 2019-03-27 11:20:27 -04:00
parameters.py Move _handle_no_log_values() out of basic.py (#48628) 2019-03-04 17:02:44 -05:00
process.py actually check we can run scm command for roles (#43315) 2018-07-31 13:04:05 -04:00
removed.py Fixup removed and deprecated modules 2018-08-24 15:37:13 -07:00
sys_info.py Use distro.id() instead of distro.name() (#52199) 2019-03-07 13:25:59 -05:00
validation.py Move type checking methods out of basic.py and add unit tests (#53687) 2019-03-21 09:40:19 -04:00