--- - name: Ensure /etc/pacman.d/hooks/ directory exists become: true ansible.builtin.file: path: /etc/pacman.d/hooks state: directory mode: '0755' owner: root group: root - name: Install Pacman Hooks become: true ansible.builtin.copy: src: pacman-hooks/ dest: /etc/pacman.d/hooks/ mode: '0644' owner: root group: root