diff --git a/tasks/swift_rings_build.yml b/tasks/swift_rings_build.yml index 94ce3a26..b626364d 100644 --- a/tasks/swift_rings_build.yml +++ b/tasks/swift_rings_build.yml @@ -43,6 +43,15 @@ - "{{ swift.storage_policies }}" - [{ type: 'object', port: "{{ swift_object_port }}" }] +- name: Ensure swift config directory permissions + file: + path: /etc/swift/ + state: directory + owner: "{{ swift_system_user_name }}" + group: "{{ swift_system_group_name }}" + recurse: yes + when: swift_install_method == 'distro' + - name: "Build rings for account/container from contents files" command: "/etc/swift/scripts/swift_rings.py -f /etc/swift/scripts/{{ item[0] }}.contents{% if item[1] %} -r {{ item[1] }}{% endif %}{{ (swift_pretend_min_part_hours_passed | bool) | ternary(' -p', '')}}" with_nested: