mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-06 10:43:14 +00:00
Purging logging configuration before running playbook (#46302)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user