Home
last modified time | relevance | path

Searched refs:play_context (Results 1 – 25 of 194) sorted by relevance

12345678

/dports/sysutils/ansible2/ansible-2.9.27/test/units/playbook/
H A Dtest_play_context.py51 play_context = PlayContext(play=play)
55 assert play_context.password == ''
58 assert play_context.verbosity == 2
86 play_context = PlayContext()
91 assert play_context.no_log is True
95 assert play_context.no_log is False
101 play_context = PlayContext()
125 play_context.become = True
126 play_context.become_user = 'foo'
140 play_context.become_pass = None
[all …]
/dports/sysutils/py-ansible-core/ansible-core-2.11.6/test/units/playbook/
H A Dtest_play_context.py50 play_context = PlayContext(play=play)
54 assert play_context.password == ''
57 assert play_context.verbosity == 2
58 assert play_context.check_mode is True
85 play_context = PlayContext()
90 assert play_context.no_log is True
94 assert play_context.no_log is False
100 play_context = PlayContext()
105 play_context.become = True
106 play_context.become_user = 'foo'
[all …]
/dports/sysutils/py-ansible-base/ansible-base-2.10.15/test/units/playbook/
H A Dtest_play_context.py50 play_context = PlayContext(play=play)
54 assert play_context.password == ''
57 assert play_context.verbosity == 2
58 assert play_context.check_mode is True
85 play_context = PlayContext()
90 assert play_context.no_log is True
94 assert play_context.no_log is False
100 play_context = PlayContext()
105 play_context.become = True
106 play_context.become_user = 'foo'
[all …]
/dports/sysutils/py-ansible-core/ansible-core-2.11.6/test/units/plugins/become/
H A Dtest_sudo.py13 from ansible.playbook.play_context import PlayContext
20 play_context = PlayContext()
27 cmd = play_context.make_become_cmd(cmd=default_cmd, executable=default_exe)
32 play_context.become = True
33 play_context.become_user = 'foo'
34 play_context.set_become_plugin(become_loader.get('sudo'))
35 play_context.become_flags = sudo_flags
36 cmd = play_context.make_become_cmd(cmd=default_cmd, executable=default_exe)
38 …assert (re.match("""%s %s -u %s %s -c 'echo %s; %s'""" % (sudo_exe, sudo_flags, play_context.beco…
41 play_context.become_pass = 'testpass'
[all …]
H A Dtest_su.py13 from ansible.playbook.play_context import PlayContext
20 play_context = PlayContext()
27 cmd = play_context.make_become_cmd(cmd=default_cmd, executable=default_exe)
32 play_context.become = True
33 play_context.become_user = 'foo'
34 play_context.become_pass = None
35 play_context.become_method = 'su'
36 play_context.set_become_plugin(become_loader.get('su'))
37 play_context.become_flags = su_flags
38 cmd = play_context.make_become_cmd(cmd=default_cmd, executable=default_exe)
[all …]
/dports/sysutils/py-ansible-base/ansible-base-2.10.15/test/units/plugins/become/
H A Dtest_sudo.py13 from ansible.playbook.play_context import PlayContext
20 play_context = PlayContext()
27 cmd = play_context.make_become_cmd(cmd=default_cmd, executable=default_exe)
32 play_context.become = True
33 play_context.become_user = 'foo'
34 play_context.set_become_plugin(become_loader.get('sudo'))
35 play_context.become_flags = sudo_flags
36 cmd = play_context.make_become_cmd(cmd=default_cmd, executable=default_exe)
38 …assert (re.match("""%s %s -u %s %s -c 'echo %s; %s'""" % (sudo_exe, sudo_flags, play_context.beco…
41 play_context.become_pass = 'testpass'
[all …]
H A Dtest_su.py13 from ansible.playbook.play_context import PlayContext
20 play_context = PlayContext()
27 cmd = play_context.make_become_cmd(cmd=default_cmd, executable=default_exe)
32 play_context.become = True
33 play_context.become_user = 'foo'
34 play_context.become_pass = None
35 play_context.become_method = 'su'
36 play_context.set_become_plugin(become_loader.get('su'))
37 play_context.become_flags = su_flags
38 cmd = play_context.make_become_cmd(cmd=default_cmd, executable=default_exe)
[all …]
/dports/sysutils/py-ansible-core/ansible-core-2.11.6/test/units/plugins/connection/
H A Dtest_paramiko.py27 from ansible.playbook.play_context import PlayContext
31 def play_context(): function
32 play_context = PlayContext()
33 play_context.prompt = (
37 return play_context
45 def test_paramiko_connection_module(play_context, in_stream): argument
47 paramiko_ssh.Connection(play_context, in_stream),
51 def test_paramiko_connect(play_context, in_stream, mocker): argument
53 connection = paramiko_ssh.Connection(play_context, in_stream)._connect()
/dports/sysutils/ansible2/ansible-2.9.27/test/units/plugins/action/
H A Dtest_action.py70 play_context = MagicMock()
74 play_context=play_context,
99 play_context = PlayContext()
145 play_context=play_context,
201 play_context=play_context,
242 play_context=play_context,
284 play_context=play_context,
329 play_context=play_context,
359 play_context=play_context,
399 play_context=play_context,
[all …]
H A Dtest_raw.py31 play_context = Mock() variable
32 play_context.shell = 'sh'
33 connection = connection_loader.get('local', play_context, os.devnull)
56 play_context.check_mode = False
58 …self.mock_am = ActionModule(task, connection, play_context, loader=None, templar=None, shared_load…
72 play_context.check_mode = True
75 …self.mock_am = ActionModule(task, connection, play_context, loader=None, templar=None, shared_load…
86 play_context.check_mode = False
88 …self.mock_am = ActionModule(task, connection, play_context, loader=None, templar=None, shared_load…
101 play_context.check_mode = False
[all …]
H A Dtest_win_updates.py26 play_context = MagicMock()
27 play_context.check_mode = False
69 play_context = MagicMock()
70 play_context.check_mode = False
72 plugin = ActionModule(task, connection, play_context, loader=None,
138 play_context = MagicMock()
139 play_context.check_mode = False
140 play_context.become = True
141 play_context.become_method = 'runas'
142 play_context.become_user = 'SYSTEM'
[all …]
/dports/sysutils/py-ansible-base/ansible-base-2.10.15/test/units/plugins/action/
H A Dtest_action.py70 play_context = MagicMock()
74 play_context=play_context,
99 play_context = PlayContext()
150 play_context=play_context,
206 play_context=play_context,
247 play_context=play_context,
289 play_context=play_context,
334 play_context=play_context,
364 play_context=play_context,
404 play_context=play_context,
[all …]
H A Dtest_raw.py34 self.play_context = Mock()
35 self.play_context.shell = 'sh'
36 self.connection = connection_loader.get('local', self.play_context, os.devnull)
53 self.play_context.check_mode = False
55 …self.mock_am = ActionModule(task, self.connection, self.play_context, loader=None, templar=None, s…
69 self.play_context.check_mode = True
72 …self.mock_am = ActionModule(task, self.connection, self.play_context, loader=None, templar=None, s…
83 self.play_context.check_mode = False
85 …self.mock_am = ActionModule(task, self.connection, self.play_context, loader=None, templar=None, s…
98 self.play_context.check_mode = False
[all …]
/dports/sysutils/ansible2/ansible-2.9.27/test/units/plugins/connection/
H A Dtest_connection.py31 from ansible.playbook.play_context import PlayContext
73 self.play_context = PlayContext()
74 self.play_context.prompt = (
117 … self.assertIsInstance(ConnectionModule3(self.play_context, self.in_stream), ConnectionModule3)
135 self.assertIsInstance(LxcConnection(self.play_context, self.in_stream), LxcConnection)
138 self.assertIsInstance(LocalConnection(self.play_context, self.in_stream), LocalConnection)
144 self.assertIsInstance(SSHConnection(self.play_context, self.in_stream), SSHConnection)
169 self.play_context.network_os = 'eos'
173 … self.assertIsInstance(NetconfConnection(self.play_context, self.in_stream), NetconfConnection)
176 self.play_context.network_os = 'eos'
[all …]
/dports/sysutils/py-ansible-core/ansible-core-2.11.6/test/units/plugins/action/
H A Dtest_action.py70 play_context = MagicMock()
74 play_context=play_context,
150 play_context=play_context,
207 play_context=play_context,
248 play_context=play_context,
290 play_context=play_context,
327 play_context=play_context,
554 play_context=play_context,
584 play_context=play_context,
624 play_context=play_context,
[all …]
H A Dtest_raw.py34 self.play_context = Mock()
35 self.play_context.shell = 'sh'
36 self.connection = connection_loader.get('local', self.play_context, os.devnull)
53 self.play_context.check_mode = False
55 …self.mock_am = ActionModule(task, self.connection, self.play_context, loader=None, templar=None, s…
69 self.play_context.check_mode = True
72 …self.mock_am = ActionModule(task, self.connection, self.play_context, loader=None, templar=None, s…
83 self.play_context.check_mode = False
85 …self.mock_am = ActionModule(task, self.connection, self.play_context, loader=None, templar=None, s…
98 self.play_context.check_mode = False
[all …]
/dports/sysutils/ansible2/ansible-2.9.27/lib/ansible/cli/scripts/
H A Dansible_connection_cli_stub.py30 from ansible.playbook.play_context import PlayContext
74 …def __init__(self, fd, play_context, socket_path, original_path, task_uuid=None, ansible_playbook_… argument
75 self.play_context = play_context
99 … if self.play_context.private_key_file and self.play_context.private_key_file[0] not in '~/':
100 …self.play_context.private_key_file = os.path.join(self.original_path, self.play_context.private_ke…
101 …self.connection = connection_loader.get(self.play_context.connection, self.play_context, '/dev/nul…
251 play_context = PlayContext()
252 play_context.deserialize(pc_data)
253 display.verbosity = play_context.verbosity
266 …cp = ssh._create_control_path(play_context.remote_addr, play_context.port, play_context.remote_use…
[all …]
/dports/sysutils/ansible2/ansible-2.9.27/bin/
H A Dansible-connection30 from ansible.playbook.play_context import PlayContext
74 …def __init__(self, fd, play_context, socket_path, original_path, task_uuid=None, ansible_playbook_…
75 self.play_context = play_context
99 … if self.play_context.private_key_file and self.play_context.private_key_file[0] not in '~/':
100 …self.play_context.private_key_file = os.path.join(self.original_path, self.play_context.private_ke…
101 …self.connection = connection_loader.get(self.play_context.connection, self.play_context, '/dev/nul…
251 play_context = PlayContext()
252 play_context.deserialize(pc_data)
253 display.verbosity = play_context.verbosity
266 …cp = ssh._create_control_path(play_context.remote_addr, play_context.port, play_context.remote_use…
[all …]
/dports/sysutils/py-ansible-base/ansible-base-2.10.15/lib/ansible/cli/scripts/
H A Dansible_connection_cli_stub.py30 from ansible.playbook.play_context import PlayContext
74 …def __init__(self, fd, play_context, socket_path, original_path, task_uuid=None, ansible_playbook_… argument
75 self.play_context = play_context
99 … if self.play_context.private_key_file and self.play_context.private_key_file[0] not in '~/':
100 …self.play_context.private_key_file = os.path.join(self.original_path, self.play_context.private_ke…
101 …self.connection = connection_loader.get(self.play_context.connection, self.play_context, '/dev/nul…
251 play_context = PlayContext()
252 play_context.deserialize(pc_data)
253 display.verbosity = play_context.verbosity
266 …cp = ssh._create_control_path(play_context.remote_addr, play_context.port, play_context.remote_use…
[all …]
/dports/sysutils/py-ansible-base/ansible-base-2.10.15/bin/
H A Dansible-connection30 from ansible.playbook.play_context import PlayContext
74 …def __init__(self, fd, play_context, socket_path, original_path, task_uuid=None, ansible_playbook_…
75 self.play_context = play_context
99 … if self.play_context.private_key_file and self.play_context.private_key_file[0] not in '~/':
100 …self.play_context.private_key_file = os.path.join(self.original_path, self.play_context.private_ke…
101 …self.connection = connection_loader.get(self.play_context.connection, self.play_context, '/dev/nul…
251 play_context = PlayContext()
252 play_context.deserialize(pc_data)
253 display.verbosity = play_context.verbosity
266 …cp = ssh._create_control_path(play_context.remote_addr, play_context.port, play_context.remote_use…
[all …]
/dports/sysutils/py-ansible-core/ansible-core-2.11.6/bin/
H A Dansible-connection30 from ansible.playbook.play_context import PlayContext
74 …def __init__(self, fd, play_context, socket_path, original_path, task_uuid=None, ansible_playbook_…
75 self.play_context = play_context
99 … if self.play_context.private_key_file and self.play_context.private_key_file[0] not in '~/':
100 …self.play_context.private_key_file = os.path.join(self.original_path, self.play_context.private_ke…
101 …self.connection = connection_loader.get(self.play_context.connection, self.play_context, '/dev/nul…
251 play_context = PlayContext()
252 play_context.deserialize(pc_data)
253 display.verbosity = play_context.verbosity
266 …cp = ssh._create_control_path(play_context.remote_addr, play_context.port, play_context.remote_use…
[all …]
/dports/sysutils/py-ansible-core/ansible-core-2.11.6/lib/ansible/cli/scripts/
H A Dansible_connection_cli_stub.py30 from ansible.playbook.play_context import PlayContext
74 …def __init__(self, fd, play_context, socket_path, original_path, task_uuid=None, ansible_playbook_… argument
75 self.play_context = play_context
99 … if self.play_context.private_key_file and self.play_context.private_key_file[0] not in '~/':
100 …self.play_context.private_key_file = os.path.join(self.original_path, self.play_context.private_ke…
101 …self.connection = connection_loader.get(self.play_context.connection, self.play_context, '/dev/nul…
251 play_context = PlayContext()
252 play_context.deserialize(pc_data)
253 display.verbosity = play_context.verbosity
266 …cp = ssh._create_control_path(play_context.remote_addr, play_context.port, play_context.remote_use…
[all …]
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/ansible/netcommon/plugins/action/
H A Dnet_base.py22 play_context = copy.deepcopy(self._play_context)
23 play_context.network_os = self._get_network_os(task_vars)
27 play_context.network_os, self._task.action
37 % (self._task.action, play_context.network_os)
44 play_context.network_os,
47 play_context=play_context,
/dports/sysutils/ansible2/ansible-2.9.27/lib/ansible/plugins/action/
H A Dnet_base.py22 play_context = copy.deepcopy(self._play_context)
23 play_context.network_os = self._get_network_os(task_vars)
26 module = self._get_implementation_module(play_context.network_os, self._task.action)
34 (self._task.action, play_context.network_os))
39 action = self._shared_loader_obj.action_loader.get(play_context.network_os,
42 play_context=play_context,
/dports/sysutils/py-ansible-core/ansible-core-2.11.6/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/action/
H A Dnet_base.py22 play_context = copy.deepcopy(self._play_context)
23 play_context.network_os = self._get_network_os(task_vars)
27 play_context.network_os, self._task.action
37 % (self._task.action, play_context.network_os)
44 play_context.network_os,
47 play_context=play_context,

12345678