ACIL FM
Dark
Refresh
Current DIR:
/usr/lib/python3.9/site-packages/ansible
/
usr
lib
python3.9
site-packages
ansible
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
cli
-
chmod
Open
Rename
Delete
collections
-
chmod
Open
Rename
Delete
compat
-
chmod
Open
Rename
Delete
config
-
chmod
Open
Rename
Delete
errors
-
chmod
Open
Rename
Delete
executor
-
chmod
Open
Rename
Delete
galaxy
-
chmod
Open
Rename
Delete
inventory
-
chmod
Open
Rename
Delete
modules
-
chmod
Open
Rename
Delete
module_utils
-
chmod
Open
Rename
Delete
parsing
-
chmod
Open
Rename
Delete
playbook
-
chmod
Open
Rename
Delete
plugins
-
chmod
Open
Rename
Delete
template
-
chmod
Open
Rename
Delete
utils
-
chmod
Open
Rename
Delete
vars
-
chmod
Open
Rename
Delete
_vendor
-
chmod
Open
Rename
Delete
__pycache__
-
chmod
Open
Rename
Delete
constants.py
8.1 MB
chmod
View
DL
Edit
Rename
Delete
context.py
1.97 MB
chmod
View
DL
Edit
Rename
Delete
keyword_desc.yml
7.19 MB
chmod
View
DL
Edit
Rename
Delete
release.py
920 B
chmod
View
DL
Edit
Rename
Delete
__init__.py
1.27 MB
chmod
View
DL
Edit
Rename
Delete
__main__.py
1.36 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /usr/lib/python3.9/site-packages/ansible/context.py
# Copyright: (c) 2018, Toshio Kuratomi <tkuratomi@ansible.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type """ Context of the running Ansible. In the future we *may* create Context objects to allow running multiple Ansible plays in parallel with different contexts but that is currently out of scope as the Ansible library is just for running the ansible command line tools. These APIs are still in flux so do not use them unless you are willing to update them with every Ansible release """ from collections.abc import Mapping, Set from ansible.module_utils.common.collections import is_sequence from ansible.utils.context_objects import CLIArgs, GlobalCLIArgs __all__ = ('CLIARGS',) # Note: this is not the singleton version. The Singleton is only created once the program has # actually parsed the args CLIARGS = CLIArgs({}) # This should be called immediately after cli_args are processed (parsed, validated, and any # normalization performed on them). No other code should call it def _init_global_context(cli_args): """Initialize the global context objects""" global CLIARGS CLIARGS = GlobalCLIArgs.from_options(cli_args) def cliargs_deferred_get(key, default=None, shallowcopy=False): """Closure over getting a key from CLIARGS with shallow copy functionality Primarily used in ``FieldAttribute`` where we need to defer setting the default until after the CLI arguments have been parsed This function is not directly bound to ``CliArgs`` so that it works with ``CLIARGS`` being replaced """ def inner(): value = CLIARGS.get(key, default=default) if not shallowcopy: return value elif is_sequence(value): return value[:] elif isinstance(value, (Mapping, Set)): return value.copy() return value return inner
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply