|
@@ -78,7 +78,7 @@
|
|
state: absent
|
|
state: absent
|
|
when:
|
|
when:
|
|
- symlink_token is defined
|
|
- symlink_token is defined
|
|
- - not symlink_token.skipped
|
|
|
|
|
|
+ - symlink_token.changed
|
|
|
|
|
|
- name: Clean up policy symlink
|
|
- name: Clean up policy symlink
|
|
file:
|
|
file:
|
|
@@ -86,7 +86,7 @@
|
|
state: absent
|
|
state: absent
|
|
when:
|
|
when:
|
|
- symlink_policies is defined
|
|
- symlink_policies is defined
|
|
- - not symlink_policies.skipped
|
|
|
|
|
|
+ - symlink_policies.changed
|
|
|
|
|
|
# Get a list of policies:
|
|
# Get a list of policies:
|
|
# curl -ks -H "Authorization: Bearer $(cat roxctl-token)" -XGET https://central-rhacs.apps.ocp4.example.com/v1/policies | jq -r '[ .policies[].id ]'
|
|
# curl -ks -H "Authorization: Bearer $(cat roxctl-token)" -XGET https://central-rhacs.apps.ocp4.example.com/v1/policies | jq -r '[ .policies[].id ]'
|