Don't run expensive ops during playbook
This commit is contained in:
parent
96adeb78e2
commit
901591848c
|
@ -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:
|
||||
|
|
2
roles/02_basics/templates/mirrorlist
Normal file
2
roles/02_basics/templates/mirrorlist
Normal 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
|
|
@ -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 }}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user