diff --git a/tasks/main.yml b/tasks/main.yml index 0852802..7a85a68 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -14,6 +14,15 @@ when: debian.stdout +- name: add local repo to mirrorlist + become: yes + lineinfile: + path: /etc/pacman.d/mirrorlist + line: "Server= {{system_arch_local_mirror}}/$repo/os/$arch" + state: present + insertbefore: BOF + when: system_arch_local_mirror is defined and not debian.stdout + - name: upgrade system for arch pacman: state: latest # not required. choices: absent;latest;present. Desired state of the package.