summaryrefslogtreecommitdiffstats
path: root/roles/nvidia_gtx1060/handlers/main.yml
blob: 7307a4b016986bf2baae7a7bfa1c06fc5e69dcec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
- name: "Rebuild initramfs"
  become: true
  ansible.builtin.command:
    cmd: "mkinitcpio -P"
  changed_when: true
  notify: "Sync kernel to EFI partition"

- name: "Sync kernel to EFI partition"
  # This desktop dual-boots via rEFInd, reading the kernel/initramfs straight from the ESP
  # (see ansible-distro-install roles/bootstrap). Its pacman hook only re-syncs the ESP
  # on `linux` package upgrades, not on a manual mkinitcpio rebuild like this one, so
  # skipping this step leaves rEFInd booting a stale initramfs (e.g. missing this role's
  # nouveau blacklist) until the next kernel upgrade happens to trigger the hook.
  become: true
  ansible.builtin.command:
    cmd: "/usr/local/bin/refind-sync-kernel"
  changed_when: true