--- - name: Create pihole-config directory file: path: "{{ item }}" owner: "{{ puid }}" group: "{{ pgid }}" mode: '755' state: directory loop: - "{{ docker_dir }}/pihole/etc-pihole/" - "{{ docker_dir }}/pihole/etc-dnsmasq.d/" become: true