mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -07:00
Adds 'ansible_check_mode' boolean magic variable
* Makes it possible to pass any options variable to VariableManager by changing `load_options_vars(options)` in `lib/ansible/utils/vars.py`
This commit is contained in:
parent
1942cd33dc
commit
eed6cf5dad
7 changed files with 54 additions and 2 deletions
|
@ -49,6 +49,8 @@ class TestVariableManager(unittest.TestCase):
|
|||
del vars['vars']
|
||||
if 'ansible_version' in vars:
|
||||
del vars['ansible_version']
|
||||
if 'ansible_check_mode' in vars:
|
||||
del vars['ansible_check_mode']
|
||||
|
||||
self.assertEqual(vars, dict(playbook_dir='.'))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue