configure arch mirror client

This commit is contained in:
vincent 2020-12-14 20:23:01 +01:00
parent c8bfcb77eb
commit a79efba425
2 changed files with 10 additions and 1 deletions

View File

@ -82,5 +82,5 @@ system_base_softwares_debian:
- 'traceroute' - 'traceroute'
system_upgrade: false system_upgrade: false
system_arch_local_mirror:
keystodeploy: [] keystodeploy: []

View File

@ -13,6 +13,15 @@
notify: Update_pacman_repos notify: Update_pacman_repos
when: ansible_architecture == "x86_64" when: ansible_architecture == "x86_64"
- 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
- name: stat ca-certificates - name: stat ca-certificates
stat: stat:
path: "/etc/ssl/certs/ca-certificates.crt" # required. The full path of the file/object to get the facts of. path: "/etc/ssl/certs/ca-certificates.crt" # required. The full path of the file/object to get the facts of.