diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-02-18 19:17:46 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-02-18 19:17:46 +0100 |
| commit | 836ecd1aabe911965ee0dd2c60624d552c50ad89 (patch) | |
| tree | 6da38129349b84de1b97e72000319ef08e3ad102 /roles/nvidia_gtx1060 | |
| parent | 561da956a7c5ba6ee90b7303a1cc3f7fe9e6161d (diff) | |
Refactor enable multilib on archlinux as a separate role
Diffstat (limited to 'roles/nvidia_gtx1060')
| -rw-r--r-- | roles/nvidia_gtx1060/tasks/install-archlinux.yml | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/roles/nvidia_gtx1060/tasks/install-archlinux.yml b/roles/nvidia_gtx1060/tasks/install-archlinux.yml index ea75ed85..c7354b89 100644 --- a/roles/nvidia_gtx1060/tasks/install-archlinux.yml +++ b/roles/nvidia_gtx1060/tasks/install-archlinux.yml @@ -1,21 +1,7 @@ --- -- name: "Enable multilib repository" - become: true - ansible.builtin.blockinfile: - path: "/etc/pacman.conf" - block: | - [multilib] - Include = /etc/pacman.d/mirrorlist - marker: "# {mark} ANSIBLE NVIDIA" - register: "nvidia_gtx1060_multilib" - -- name: "Update pacman cache" - # noqa no-handler as this needs to run if the pacman configuration changes immediatly - # otherwise, it will fail to update the mirrorlist and fail to query the info about the needed libs - become: true - community.general.pacman: - update_cache: true - when: "nvidia_gtx1060_multilib.changed" +- name: "Ensure multilib is enabled" + ansible.builtin.include_role: + name: "multilib" - name: "Install libva NVIDIA driver" become: true |
