From 82f9288507bf48f3c22da2a1949c51cc87994e1f Mon Sep 17 00:00:00 2001 From: Andrew Klychkov Date: Mon, 13 Jul 2020 21:26:16 +0300 Subject: [PATCH] modules: fix examples to use FQCN (#88) * modules: fix examples to use FQCN * fix * fix --- plugins/modules/command.py | 8 ++++---- plugins/modules/facts.py | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/modules/command.py b/plugins/modules/command.py index b5f4920..324b811 100644 --- a/plugins/modules/command.py +++ b/plugins/modules/command.py @@ -60,22 +60,22 @@ options: EXAMPLES = """ tasks: - name: Run command on remote devices - command: + community.network.command: commands: /system routerboard print - name: Run command and check to see if output contains routeros - command: + community.network.command: commands: /system resource print wait_for: result[0] contains MikroTik - name: Run multiple commands on remote nodes - command: + community.network.command: commands: - /system routerboard print - /system identity print - name: Run multiple commands and evaluate the output - command: + community.network.command: commands: - /system routerboard print - /interface ethernet print diff --git a/plugins/modules/facts.py b/plugins/modules/facts.py index a7a52c0..d018f75 100644 --- a/plugins/modules/facts.py +++ b/plugins/modules/facts.py @@ -31,16 +31,16 @@ options: EXAMPLES = """ - name: Collect all facts from the device - facts: + community.network.facts: gather_subset: all - name: Collect only the config and default facts - facts: + community.network.facts: gather_subset: - config - name: Do not collect hardware facts - facts: + community.network.facts: gather_subset: - "!hardware" """