--- - name: Create cupsd-config directory file: path: "{{ item }}" owner: "{{ puid }}" group: "{{ pgid }}" mode: '755' state: directory loop: - "{{ cupsd_config }}" become: true - name: Copy cupsd config template: owner: "{{ puid }}" src: "templates/aya01/cupsd/cupsd.conf" dest: "{{ cupsd_config }}/cupsd.conf" mode: '660' become: true