From 283749481ee94b5810f702d46fb0654d362baee1 Mon Sep 17 00:00:00 2001 From: Andrew Klychkov Date: Wed, 20 May 2020 09:59:02 +0300 Subject: [PATCH] Fix example formatting (#37) --- plugins/modules/command.py | 8 ++++---- plugins/modules/facts.py | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/plugins/modules/command.py b/plugins/modules/command.py index 1f04d83..b5f4920 100644 --- a/plugins/modules/command.py +++ b/plugins/modules/command.py @@ -59,22 +59,22 @@ options: EXAMPLES = """ tasks: - - name: run command on remote devices + - name: Run command on remote devices command: commands: /system routerboard print - - name: run command and check to see if output contains routeros + - name: Run command and check to see if output contains routeros command: commands: /system resource print wait_for: result[0] contains MikroTik - - name: run multiple commands on remote nodes + - name: Run multiple commands on remote nodes command: commands: - /system routerboard print - /system identity print - - name: run multiple commands and evaluate the output + - name: Run multiple commands and evaluate the output command: commands: - /system routerboard print diff --git a/plugins/modules/facts.py b/plugins/modules/facts.py index 0341ef6..a7a52c0 100644 --- a/plugins/modules/facts.py +++ b/plugins/modules/facts.py @@ -30,17 +30,17 @@ options: ''' EXAMPLES = """ -# Collect all facts from the device -- facts: +- name: Collect all facts from the device + facts: gather_subset: all -# Collect only the config and default facts -- facts: +- name: Collect only the config and default facts + facts: gather_subset: - config -# Do not collect hardware facts -- facts: +- name: Do not collect hardware facts + facts: gather_subset: - "!hardware" """