Purging logging configuration before running playbook (#46302)

pull/46433/merge
tstoner 6 years ago committed by Trishna Guha
parent e2b6047514
commit ae363da5f5

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

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

Loading…
Cancel
Save