--- - name: Create sonarr directories file: path: "{{ item }}" owner: "{{ puid }}" group: "{{ pgid }}" mode: '755' state: directory become: yes loop: - "{{ sonarr_config }}" - "{{ sonarr_media }}" - "{{ sonarr_downloads }}"