mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Examples syntax batch7 (#5624)
* Change example syntax on nxos_feature module * Change example syntax on nxos_hsrp module * Change example syntax on nxos_igmp module * Change example syntax on nxos_interface module * Change example syntax on nxos_interface_ospf module * Change example syntax on nxos_ip_interface module * Change example syntax on nxos_ping module * Change example syntax on nxos_switchport module * Change example syntax on nxos_vlan module * Change example syntax on nxos_vrf module * Change example syntax on nxos_vrf_interface module * Change example syntax on nxos_vrrp module * Change example syntax on meta module * Change example syntax on set_fact module * Change example syntax on win_copy module * Change example syntax on win_file module * Change example syntax on win_get_url module Remove escaping of \ characeter in Windows paths since it's no longer required for single quoted or unquoted values when using multi-line YAML syntax. * Change example syntax on win_lineinfile module * Change example syntax on win_msi module * Change example syntax on win_stat module * Remove nxos_bgp example from nxos_igmp module * Mark examples as regexp to avoid syntax error * Cleanup win_copy.py examples * Cleanup win_file.py examples * Remove quotes in win_get_url.py examples * Cleanup quotes and languare in win_lineinfile.py * Cleanup examples in win_group.py * Cleanup examples in win_service.py * Don't use : in documentation because it breaks the YAML syntax check * Cleanup win_copy.py examples * Cleanup win_copy.py examples * Minor change to fix test failure * Use single quotes
This commit is contained in:
parent
bf184b1a92
commit
c0c26f83a8
23 changed files with 352 additions and 162 deletions
|
@ -60,24 +60,21 @@ options:
|
|||
choices: ['present', 'default']
|
||||
'''
|
||||
EXAMPLES = '''
|
||||
# default igmp global params (all params except restart)
|
||||
- nxos_igmp: state=default host={{ inventory_hostname }}
|
||||
# ensure the following igmp global config exists on the device
|
||||
- nxos_igmp: flush_routes=true enforce_rtr_alert=true host={{ inventory_hostname }}
|
||||
# restart the igmp process
|
||||
- nxos_igmp: restart=true host={{ inventory_hostname }}
|
||||
'''
|
||||
- name: Default igmp global params (all params except restart)
|
||||
nxos_igmp:
|
||||
state: default
|
||||
host: "{{ inventory_hostname }}"
|
||||
|
||||
EXAMPLES = '''
|
||||
# configure a simple asn
|
||||
- nxos_bgp:
|
||||
asn=65535
|
||||
vrf=test
|
||||
router_id=1.1.1.1
|
||||
state=present
|
||||
username: "{{ un }}"
|
||||
password: "{{ pwd }}"
|
||||
host: "{{ inventory_hostname }}"
|
||||
- name: Ensure the following igmp global config exists on the device
|
||||
nxos_igmp:
|
||||
flush_routes: true
|
||||
enforce_rtr_alert: true
|
||||
host: "{{ inventory_hostname }}"
|
||||
|
||||
- name: Restart the igmp process
|
||||
nxos_igmp:
|
||||
restart: true
|
||||
host: "{{ inventory_hostname }}"
|
||||
'''
|
||||
|
||||
RETURN = '''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue