diff --git a/changelogs/fragments/junos_config_check_commit.yaml b/changelogs/fragments/junos_config_check_commit.yaml new file mode 100644 index 00000000000..92e1ce4397f --- /dev/null +++ b/changelogs/fragments/junos_config_check_commit.yaml @@ -0,0 +1,2 @@ +bugfixes: +- junos_config - allow validate config before committing to running configuration (https://github.com/ansible/ansible/pull/61969) diff --git a/lib/ansible/modules/network/junos/junos_config.py b/lib/ansible/modules/network/junos/junos_config.py index 0dac8916c3a..f6b353af6cd 100644 --- a/lib/ansible/modules/network/junos/junos_config.py +++ b/lib/ansible/modules/network/junos/junos_config.py @@ -448,7 +448,8 @@ def main(): if diff: if commit: kwargs = { - 'comment': module.params['comment'] + 'comment': module.params['comment'], + 'check': module.params['check_commit'] } confirm = module.params['confirm']