David Wilson
7cf2edc3a8
ansible: Support many more common playbook variables.
2018-03-19 21:58:32 +05:45
David Wilson
ff617824a1
ansible: fix some flake8 errors
...
* Unused imports
* Undefined names in helpers.py
* Copyright header wrapping
2018-03-19 21:58:31 +05:45
David Wilson
1b090a6c0a
ansible: fix become:true with sudo:true
2018-03-19 21:58:31 +05:45
David Wilson
83f2862431
ansible: _remote_chmod() / _fixup_perms2() can be called sometimes.
...
It's used at least by the copy module, even though the result is still
mostly a no-op. _remote_chmod() doesn't accept octal mode, it accepts
symbolic mode. So implement a symbolic parser in helpers.py.
2018-03-19 21:58:31 +05:45
David Wilson
5dc2cc0726
ansible: don't enable_debug_logging() for sudo
2018-03-19 21:58:30 +05:45
David Wilson
b221eaaa10
ansible: log call timings
2018-03-19 21:58:30 +05:45
David Wilson
91116810a1
ansible: delete utils.py and promote cast() to mitogen.utils
2018-03-19 21:58:30 +05:45
David Wilson
5d8cb0f5fb
ansible: document the connection class.
2018-03-19 21:58:30 +05:45
David Wilson
84e9d42e71
ansible: handle local connections and synchronize module too.
2018-03-19 21:58:29 +05:45
David Wilson
74468abf0a
ansible: fix syntax error
2018-03-19 21:58:29 +05:45
David Wilson
6e7bb4fd13
ansible: support local connections too
2018-03-19 21:58:29 +05:45
David Wilson
331f77ee2b
ansible: generalized action module wrapping.
2018-03-19 21:58:29 +05:45
David Wilson
d13ab9a022
ansible: remove hard-wired UNIX socket path.
2018-03-19 21:58:29 +05:45
David Wilson
6059e0c1db
ansible: support become:True and become_user
2018-03-19 21:58:29 +05:45
David Wilson
a35fcf44cc
ansible: restructure to avoid intermediate imports
2018-03-19 21:58:29 +05:45