Chapter 6 Network Reconnaissance
For diagrams, tables, or exact code formatting, .
JOHN W. CAPOBIANCOPRINTED PAGE 97
changed: [CORE]
changed: [DIST01]
changed: [DIST02]
changed: [ACCESS01]
changed: [ACCESS02]
changed: [ACCESS03]
PLAY RECAP**************************************************************************
CORE : ok=2 changed=1 unreachable=0 failed=0
DIST01 : ok=2 changed=1 unreachable=0 failed=0
DIST02 : ok=2 changed=1 unreachable=0 failed=0
ACCESS01 : ok=2 changed=1 unreachable=0 failed=0
ACCES302 : ok=2 changed=1 unreachable=0 failed=0
ACCESS03 : ok=2 changed=1 unreachable=0 failed=0
Review the check mode output from the playbook that executes against all hosts listed in the
[CAMPUS] group (referencing hosts.ini).The task, [IOS Facts on CAMPUS] is executed, serially, against the hosts. This task has run successfully (for example - ok: [Core]) on each host. There are no errors present in the playbook and the commands executed successfully.
Next, the task [copy] executes on each host creating (for example changed: [CORE]) new output files for each host.
The play recap shows the status of each device (ok=2), how many changes will be made (changed=1), if the device was unreachable, and how many steps, if any, failed (failed=0).
The text will be green for all unchanged / status of ok, change to yellow to indicate changes, and red to indicate failures or errors.
Execute the play now that it is known it will execute without errors.
[automateyournetwork@LINUX HOST]$ ansible-playbook ios_facts.yml
PLAY [CAMPUS]************************************************************************
TASK [IOS Facts on CAMPUS]************************************************************
ok: [CORE]
ok: [DIST01]
ok: [DIST02]
ok: [ACCESS01]
ok: [ACCESS02]
ok: [ACCESS03]
TASK [copy]***************************************************************************
changed: [CORE]
changed: [DIST01]
changed: [DIST02]
changed: [ACCESS01]
changed: [ACCESS02]
changed: [ACCESS03]
PLAY RECAP**************************************************************************