mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Add common aggregate arguments for junos modules (#28124)
If parameter value in aggregate is not set, fetch it's corresponding value from top level parameters.
This commit is contained in:
parent
d78c199972
commit
711a6b2326
25 changed files with 374 additions and 272 deletions
|
@ -324,8 +324,15 @@
|
|||
- name: Deactivate file logging configuration using aggregate
|
||||
junos_logging:
|
||||
aggregate:
|
||||
- {dest: file, name: test-1, facility: pfe, level: critical, active: False}
|
||||
- {dest: file, name: test-2, facility: kernel, level: emergency, active: False}
|
||||
- dest: file
|
||||
name: test-1
|
||||
facility: pfe
|
||||
level: critical
|
||||
- dest: file
|
||||
name: test-2
|
||||
facility: kernel
|
||||
level: emergency
|
||||
active: False
|
||||
provider: "{{ netconf }}"
|
||||
register: result
|
||||
|
||||
|
@ -340,8 +347,9 @@
|
|||
- name: activate file logging configuration using aggregate
|
||||
junos_logging:
|
||||
aggregate:
|
||||
- {dest: file, name: test-1, facility: pfe, level: critical, active: True}
|
||||
- {dest: file, name: test-2, facility: kernel, level: emergency, active: True}
|
||||
- { dest: file, name: test-1, facility: pfe, level: critical }
|
||||
- { dest: file, name: test-2, facility: kernel, level: emergency }
|
||||
active: True
|
||||
provider: "{{ netconf }}"
|
||||
register: result
|
||||
|
||||
|
@ -356,8 +364,9 @@
|
|||
- name: Delete file logging using aggregate
|
||||
junos_logging:
|
||||
aggregate:
|
||||
- {dest: file, name: test-1, facility: pfe, level: critical, state: absent}
|
||||
- {dest: file, name: test-2, facility: kernel, level: emergency, state: absent}
|
||||
- { dest: file, name: test-1, facility: pfe, level: critical }
|
||||
- { dest: file, name: test-2, facility: kernel, level: emergency }
|
||||
state: absent
|
||||
provider: "{{ netconf }}"
|
||||
register: result
|
||||
|
||||
|
@ -372,8 +381,9 @@
|
|||
- name: Delete file logging using aggregate (idempotent)
|
||||
junos_logging:
|
||||
aggregate:
|
||||
- {dest: file, name: test-1, facility: pfe, level: critical, state: absent}
|
||||
- {dest: file, name: test-2, facility: kernel, level: emergency, state: absent}
|
||||
- { dest: file, name: test-1, facility: pfe, level: critical }
|
||||
- { dest: file, name: test-2, facility: kernel, level: emergency }
|
||||
state: absent
|
||||
provider: "{{ netconf }}"
|
||||
register: result
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue