disable gather facts and update playbook output (#46409) (#46418)

* disable facts gather and update playbook output

* fix output

(cherry picked from commit a1fae193c7)
This commit is contained in:
Sandra McCann 2018-10-02 17:23:10 -04:00 committed by Alicia Cozine
parent d81ed54ae6
commit a1d1276b6e
3 changed files with 12 additions and 21 deletions

View file

@ -90,10 +90,6 @@ The playbook contains one play with two tasks, and should generate output like t
PLAY [First Playbook]
***************************************************************************************************************************
TASK [Gathering Facts]
***************************************************************************************************************************
ok: [vyos.example.net]
TASK [Get config for VyOS devices]
***************************************************************************************************************************
ok: [vyos.example.net]
@ -101,7 +97,6 @@ The playbook contains one play with two tasks, and should generate output like t
TASK [Display the config]
***************************************************************************************************************************
ok: [vyos.example.net] => {
"failed": false,
"msg": "The hostname is vyos and the OS is VyOS"
}
@ -119,10 +114,6 @@ The extended first playbook has four tasks in a single play. Run it with the sam
PLAY [First Playbook]
************************************************************************************************************************************
TASK [Gathering Facts]
***********************************************************************************************************************************
ok: [vyos.example.net]
TASK [Get config for VyOS devices]
**********************************************************************************************************************************
ok: [vyos.example.net]
@ -130,7 +121,6 @@ The extended first playbook has four tasks in a single play. Run it with the sam
TASK [Display the config]
*************************************************************************************************************************************
ok: [vyos.example.net] => {
"failed": false,
"msg": "The hostname is vyos and the OS is VyOS"
}
@ -145,7 +135,6 @@ The extended first playbook has four tasks in a single play. Run it with the sam
TASK [Display the changed config]
*************************************************************************************************************************************
ok: [vyos.example.net] => {
"failed": false,
"msg": "The hostname is vyos-changed and the OS is VyOS"
}

View file

@ -2,6 +2,7 @@
- name: Network Getting Started First Playbook
connection: network_cli
gather_facts: false
hosts: all
tasks:

View file

@ -2,6 +2,7 @@
- name: Network Getting Started First Playbook Extended
connection: network_cli
gather_facts: false
hosts: all
tasks: