diff --git a/tasks/barbican_post_install.yml b/tasks/barbican_post_install.yml index 63def0a..12f8416 100644 --- a/tasks/barbican_post_install.yml +++ b/tasks/barbican_post_install.yml @@ -39,7 +39,7 @@ - Restart barbican services - Restart uwsgi services -- name: Implement policy.yaml if there are overrides configured +- name: Place policy.yaml file openstack.config_template.config_template: content: "{{ barbican_policy_overrides }}" dest: "{{ barbican_etc_directory }}/policy.yaml" @@ -47,20 +47,9 @@ group: "{{ barbican_system_group_name }}" mode: "0640" config_type: yaml - when: - - barbican_policy_overrides | length > 0 tags: - barbican-policy-override -- name: Remove legacy policy.yaml file - ansible.builtin.file: - path: "{{ barbican_etc_directory }}/policy.yaml" - state: absent - tags: - - barbican-policy-override - when: - - barbican_policy_overrides | length == 0 - - name: Copy user defined libraries when: barbican_user_libraries | length > 0 block: