Allow to provide policy state
It might be desired by deployer to remove already applied policy. For that policy state should be explicitly passeda as absent for the module. Change-Id: I0db1e23ca0edf65aa1b4c8ca20153337044b6c4c
This commit is contained in:
parent
6345b19bca
commit
2fe09cc698
@ -39,6 +39,7 @@
|
||||
pattern: "{{ item.pattern }}"
|
||||
priority: "{{ item.priority | default(0) }}"
|
||||
tags: "{{ item.tags }}"
|
||||
state: "{{ item.state | default(omit) }}"
|
||||
vhost: "{{ _oslomsg_rpc_vhost }}"
|
||||
loop: "{{ _oslomsg_rpc_policies | default([]) + oslomsg_rpc_policies }}"
|
||||
|
||||
@ -77,6 +78,7 @@
|
||||
pattern: "{{ item.pattern }}"
|
||||
priority: "{{ item.priority | default(0) }}"
|
||||
tags: "{{ item.tags }}"
|
||||
state: "{{ item.state | default(omit) }}"
|
||||
vhost: "{{ _oslomsg_notify_vhost }}"
|
||||
loop: "{{ _oslomsg_notify_policies | default([]) + oslomsg_notify_policies }}"
|
||||
when:
|
||||
|
Loading…
Reference in New Issue
Block a user