Purging logging configuration before running playbook (#46302)

This commit is contained in:
tstoner 2018-10-04 10:48:18 -04:00 committed by Trishna Guha
parent e2b6047514
commit ae363da5f5
2 changed files with 10 additions and 0 deletions

View file

@ -3,6 +3,11 @@
- debug: msg="Using provider={{ connection.transport }}"
when: ansible_connection == "local"
- name: Purge logging configuration first
nxos_logging:
purge: true
provider: "{{ connection }}"
- name: Set up console logging
nxos_logging: &clog
dest: console

View file

@ -1,6 +1,11 @@
---
- debug: msg="START connection={{ ansible_connection }} nxos_logging purge test"
- name: Purge logging configuration first
nxos_logging:
purge: true
provider: "{{ connection }}"
- block:
- name: Set up console logging