ACIL FM
Dark
Refresh
Current DIR:
/usr/lib/python3.9/site-packages/ansible/playbook
/
usr
lib
python3.9
site-packages
ansible
playbook
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
role
-
chmod
Open
Rename
Delete
__pycache__
-
chmod
Open
Rename
Delete
attribute.py
7.58 MB
chmod
View
DL
Edit
Rename
Delete
base.py
32.77 MB
chmod
View
DL
Edit
Rename
Delete
block.py
16.39 MB
chmod
View
DL
Edit
Rename
Delete
collectionsearch.py
2.59 MB
chmod
View
DL
Edit
Rename
Delete
conditional.py
9.89 MB
chmod
View
DL
Edit
Rename
Delete
handler.py
2.2 MB
chmod
View
DL
Edit
Rename
Delete
handler_task_include.py
1.44 MB
chmod
View
DL
Edit
Rename
Delete
helpers.py
16.35 MB
chmod
View
DL
Edit
Rename
Delete
included_file.py
11.32 MB
chmod
View
DL
Edit
Rename
Delete
loop_control.py
1.72 MB
chmod
View
DL
Edit
Rename
Delete
play.py
15.35 MB
chmod
View
DL
Edit
Rename
Delete
playbook_include.py
7.39 MB
chmod
View
DL
Edit
Rename
Delete
play_context.py
14.22 MB
chmod
View
DL
Edit
Rename
Delete
role_include.py
7.72 MB
chmod
View
DL
Edit
Rename
Delete
taggable.py
3.09 MB
chmod
View
DL
Edit
Rename
Delete
task.py
20.8 MB
chmod
View
DL
Edit
Rename
Delete
task_include.py
5.9 MB
chmod
View
DL
Edit
Rename
Delete
__init__.py
4.69 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /usr/lib/python3.9/site-packages/ansible/playbook/taggable.py
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Ansible. If not, see <http://www.gnu.org/licenses/>. # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible.errors import AnsibleError from ansible.module_utils.six import string_types from ansible.playbook.attribute import FieldAttribute from ansible.template import Templar class Taggable: untagged = frozenset(['untagged']) tags = FieldAttribute(isa='list', default=list, listof=(string_types, int), extend=True) def _load_tags(self, attr, ds): if isinstance(ds, list): return ds elif isinstance(ds, string_types): value = ds.split(',') if isinstance(value, list): return [x.strip() for x in value] else: return [ds] else: raise AnsibleError('tags must be specified as a list', obj=ds) def evaluate_tags(self, only_tags, skip_tags, all_vars): ''' this checks if the current item should be executed depending on tag options ''' if self.tags: templar = Templar(loader=self._loader, variables=all_vars) tags = templar.template(self.tags) _temp_tags = set() for tag in tags: if isinstance(tag, list): _temp_tags.update(tag) else: _temp_tags.add(tag) tags = _temp_tags self.tags = list(tags) else: # this makes isdisjoint work for untagged tags = self.untagged should_run = True # default, tasks to run if only_tags: if 'always' in tags: should_run = True elif ('all' in only_tags and 'never' not in tags): should_run = True elif not tags.isdisjoint(only_tags): should_run = True elif 'tagged' in only_tags and tags != self.untagged and 'never' not in tags: should_run = True else: should_run = False if should_run and skip_tags: # Check for tags that we need to skip if 'all' in skip_tags: if 'always' not in tags or 'always' in skip_tags: should_run = False elif not tags.isdisjoint(skip_tags): should_run = False elif 'tagged' in skip_tags and tags != self.untagged: should_run = False return should_run
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply