mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user