mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
694 B
Python
30 lines
694 B
Python
4 years ago
|
#!/usr/bin/python
|
||
|
# Copyright: (c) 2020, Matt Martz <matt@sivel.net>
|
||
|
# 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.basic import AnsibleModule
|
||
|
from ansible.module_utils.common.dict_transformations import recursive_diff
|
||
|
|
||
|
|
||
|
def main():
|
||
|
module = AnsibleModule(
|
||
|
{
|
||
|
'a': {'type': 'dict'},
|
||
|
'b': {'type': 'dict'},
|
||
|
}
|
||
|
)
|
||
|
|
||
|
module.exit_json(
|
||
|
the_diff=recursive_diff(
|
||
|
module.params['a'],
|
||
|
module.params['b'],
|
||
|
),
|
||
|
)
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
main()
|