Purging logging configuration before running playbook (#46302)
This commit is contained in:
parent
e2b6047514
commit
ae363da5f5
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue