mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-20 03:40:22 -07:00
modules: fix examples to use FQCN for builtin modules (#648)
* modules: fix examples to use FQCN for builtin modules * fix * fix * fix * fix * fix * fix * fix
This commit is contained in:
parent
c034e8c04f
commit
c055340ecb
126 changed files with 290 additions and 286 deletions
|
@ -42,7 +42,7 @@ EXAMPLES = r'''
|
|||
register: result
|
||||
|
||||
- name: Print value of failover IP 1.2.3.4 in case it is routed
|
||||
debug:
|
||||
ansible.builtin.debug:
|
||||
msg: "1.2.3.4 routes to {{ result.value }}"
|
||||
when: result.state == 'routed'
|
||||
'''
|
||||
|
|
|
@ -164,7 +164,7 @@ EXAMPLES = r'''
|
|||
action: discard
|
||||
register: result
|
||||
|
||||
- debug:
|
||||
- ansible.builtin.debug:
|
||||
msg: "{{ result }}"
|
||||
'''
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ EXAMPLES = r'''
|
|||
server_ip: 1.2.3.4
|
||||
register: result
|
||||
|
||||
- debug:
|
||||
- ansible.builtin.debug:
|
||||
msg: "{{ result.firewall }}"
|
||||
'''
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ EXAMPLES = '''
|
|||
community.general.lldp:
|
||||
|
||||
- name: Print each switch/port
|
||||
debug:
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ lldp[item]['chassis']['name'] }} / {{ lldp[item]['port']['ifname'] }}"
|
||||
with_items: "{{ lldp.keys() }}"
|
||||
|
||||
|
|
|
@ -355,7 +355,7 @@ EXAMPLES = r'''
|
|||
tasks:
|
||||
|
||||
- name: Install needed network manager libs
|
||||
package:
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- NetworkManager-libnm
|
||||
- nm-connection-editor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue