- name: Ensure logdir exists
  become: yes
  file:
    path: "{{ logdir }}"
    state: directory
    owner: "{{ ansible_user }}"
    group: "{{ ansible_user }}"
    mode: 0775

- name: Ensure logdir exists
  become: yes
  file:
    path: "{{ logdir }}"
    state: directory
    owner: stack
    group: "{{ ansible_user }}"
    mode: 0775

Fix log directory permissions for functional job
Fix log directory permissions for functional job

After [0] devstack no longer changes the ownership of the whole
/opt/stack tree to the stack user unconditionally. So we need to create
/opt/stack/logs with the correct owner directly.

[0] https://review.opendev.org/203698

Change-Id: I4597c83bfce6267ef93bb8f7b0de62fa3ac94db4
Closes-Bug: 1838811
