disable gather facts and update playbook output (#46409)

* disable facts gather and update playbook output

* fix output
This commit is contained in:
Sandra McCann 2018-10-02 14:59:10 -04:00 committed by Alicia Cozine
parent 33b34f5c82
commit a1fae193c7
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] PLAY [First Playbook]
*************************************************************************************************************************** ***************************************************************************************************************************
TASK [Gathering Facts]
***************************************************************************************************************************
ok: [vyos.example.net]
TASK [Get config for VyOS devices] TASK [Get config for VyOS devices]
*************************************************************************************************************************** ***************************************************************************************************************************
ok: [vyos.example.net] 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] TASK [Display the config]
*************************************************************************************************************************** ***************************************************************************************************************************
ok: [vyos.example.net] => { ok: [vyos.example.net] => {
"failed": false,
"msg": "The hostname is vyos and the OS is VyOS" "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] PLAY [First Playbook]
************************************************************************************************************************************ ************************************************************************************************************************************
TASK [Gathering Facts]
***********************************************************************************************************************************
ok: [vyos.example.net]
TASK [Get config for VyOS devices] TASK [Get config for VyOS devices]
********************************************************************************************************************************** **********************************************************************************************************************************
ok: [vyos.example.net] 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] TASK [Display the config]
************************************************************************************************************************************* *************************************************************************************************************************************
ok: [vyos.example.net] => { ok: [vyos.example.net] => {
"failed": false,
"msg": "The hostname is vyos and the OS is VyOS" "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] TASK [Display the changed config]
************************************************************************************************************************************* *************************************************************************************************************************************
ok: [vyos.example.net] => { ok: [vyos.example.net] => {
"failed": false,
"msg": "The hostname is vyos-changed and the OS is VyOS" "msg": "The hostname is vyos-changed and the OS is VyOS"
} }

View file

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

View file

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