diff --git a/changelogs/fragments/junos_config_lines_alias.yaml b/changelogs/fragments/junos_config_lines_alias.yaml new file mode 100644 index 00000000000..7213974f92c --- /dev/null +++ b/changelogs/fragments/junos_config_lines_alias.yaml @@ -0,0 +1,2 @@ +bugfixes: +- junos_config - Add commands alias to lines option to be in sync with other platforms (https://github.com/ansible/ansible/pull/62221) diff --git a/lib/ansible/modules/network/junos/junos_config.py b/lib/ansible/modules/network/junos/junos_config.py index f6b353af6cd..fc7ba9064d8 100644 --- a/lib/ansible/modules/network/junos/junos_config.py +++ b/lib/ansible/modules/network/junos/junos_config.py @@ -371,7 +371,7 @@ def main(): dir_path=dict(type='path') ) argument_spec = dict( - lines=dict(type='list'), + lines=dict(aliases=['commands'], type='list'), src=dict(type='path'), src_format=dict(choices=['xml', 'text', 'set', 'json']),