diff --git a/configs.yml b/configs.yml index c70f889..ec95df4 100644 --- a/configs.yml +++ b/configs.yml @@ -19,8 +19,6 @@ mariadb: condition: "sudo find /var/lib/mysql -mindepth 1 | read" pacman_hooks: - - run: - - sudo mkdir -p /etc/pacman.d/hooks - run: command: sudo ln -rsi dotfiles/pacman_hooks/borg_backup.hook /etc/pacman.d/hooks/borg_backup.hook condition: "[[ $(uname -n) = 'arch-desktop' ]]" diff --git a/roles/pacman/tasks/main.yml b/roles/pacman/tasks/main.yml index aa689f4..b064e62 100644 --- a/roles/pacman/tasks/main.yml +++ b/roles/pacman/tasks/main.yml @@ -35,3 +35,10 @@ regexp: "#VerbosePkgLists" replace: VerbosePkgLists backup: true + +- name: Make sure hooks directory exists + become: true + file: + path: /etc/pacman.d/hooks + state: directory + mode: 0755