diff --git a/lib/ansible/modules/network/interface/net_interface.py b/lib/ansible/modules/network/interface/net_interface.py index 1d5a225efe..b25a9b8e5b 100644 --- a/lib/ansible/modules/network/interface/net_interface.py +++ b/lib/ansible/modules/network/interface/net_interface.py @@ -96,10 +96,8 @@ EXAMPLES = """ - name: Create interface using aggregate net_interface: aggregate: - - name: ge-0/0/1 - description: test-interface-1 - - name: ge-0/0/2 - description: test-interface-2 + - { name: ge-0/0/1, description: test-interface-1 } + - { name: ge-0/0/2, description: test-interface-2 } speed: 1g duplex: full mtu: 512 @@ -107,8 +105,8 @@ EXAMPLES = """ - name: Delete interface using aggregate junos_interface: aggregate: - - name: ge-0/0/1 - - name: ge-0/0/2 + - { name: ge-0/0/1 } + - { name: ge-0/0/2 } state: absent - name: Check intent arguments diff --git a/lib/ansible/modules/network/interface/net_lldp_interface.py b/lib/ansible/modules/network/interface/net_lldp_interface.py index 2890844158..1a3df64a3f 100644 --- a/lib/ansible/modules/network/interface/net_lldp_interface.py +++ b/lib/ansible/modules/network/interface/net_lldp_interface.py @@ -62,15 +62,15 @@ EXAMPLES = """ - name: Create aggregate of LLDP interface configurations net_lldp_interface: aggregate: - - name: eth1 - - name: eth2 + - { name: eth1 } + - { name: eth2 } state: present - name: Delete aggregate of LLDP interface configurations net_lldp_interface: aggregate: - - name: eth1 - - name: eth2 + - { name: eth1 } + - { name: eth2 } state: absent """ diff --git a/lib/ansible/modules/network/system/net_user.py b/lib/ansible/modules/network/system/net_user.py index 14130e6e59..e9beff30db 100644 --- a/lib/ansible/modules/network/system/net_user.py +++ b/lib/ansible/modules/network/system/net_user.py @@ -106,8 +106,8 @@ EXAMPLES = """ - name: set multiple users to privilege level 15 net_user: aggregate: - - name: netop - - name: netend + - { name: netop } + - { name: netend } privilege: 15 state: present