--- - name: Ensure node log directory exists file: path: "{{ tenks_diagnostics_log_dir }}" state: "directory" - name: Ensure node log subdirectories exist file: path: "{{ tenks_diagnostics_log_dir }}/{{ item }}" state: "directory" mode: 0777 with_items: - "libvirt_logs" - "config" - "system_logs" - "ansible"