Don't run expensive ops during playbook

This commit is contained in:
Ariejan de Vroom 2024-06-06 22:07:15 +02:00
parent 96adeb78e2
commit 901591848c
Signed by: ariejan
GPG Key ID: AD739154F713697B
3 changed files with 11 additions and 3 deletions

View File

@ -28,8 +28,14 @@
become: true
- name: Update mirrorlist
ansible.builtin.shell:
cmd: reflector -c "{{ user.country }}" --age 24 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
ansible.builtin.template:
src: mirrorlist
dest: /etc/pacman.d/mirrorlist
backup: no
owner: root
group: root
mode: 0644
become: true
- name: Upgrade system
community.general.pacman:

View File

@ -0,0 +1,2 @@
Server = https://nl.mirror.flokinet.net/arch/archlinux/$repo/os/$arch
Server = https://mirror.mijn.host/archlinux/$repo/os/$arch

View File

@ -8,7 +8,7 @@
ansible.builtin.user:
name: "{{ user.name }}"
# Use: openssl passwd -salt <salt> -1 <plaintext>
password: "{{ user.hashed_password }}"
password: "{{ user.password }}"
update_password: on_create
comment: "{{ user.full_name }}"
groups: "{{ user.additional_groups }}"