2022-12-10 17:51:03 +00:00
|
|
|
- name: Upgrade arch-keyring
|
|
|
|
community.general.pacman:
|
2022-02-13 08:40:15 +00:00
|
|
|
state: latest # noqa package-latest
|
2021-07-10 12:40:17 +00:00
|
|
|
name: archlinux-keyring
|
2022-02-13 08:40:15 +00:00
|
|
|
force: true
|
2021-07-10 12:40:17 +00:00
|
|
|
update_cache: false
|
2022-02-13 08:40:15 +00:00
|
|
|
become: true
|
2023-03-26 13:31:22 +00:00
|
|
|
when: ansible_facts['os_family'] == "Archlinux"
|
2019-10-24 19:16:17 +00:00
|
|
|
|
2022-12-10 17:51:03 +00:00
|
|
|
- name: Upgrade system
|
|
|
|
community.general.pacman:
|
2022-02-13 08:40:15 +00:00
|
|
|
state: latest # noqa package-latest
|
|
|
|
upgrade: true
|
|
|
|
force: true
|
2021-07-10 12:40:17 +00:00
|
|
|
update_cache: false
|
2022-02-13 08:40:15 +00:00
|
|
|
become: true
|
2020-01-13 19:04:49 +00:00
|
|
|
when: system_upgrade and ansible_facts['os_family'] == "Archlinux"
|
2019-10-24 19:16:17 +00:00
|
|
|
register: upgrade
|
|
|
|
|
|
|
|
- name: Reboot updates to apply
|
2022-12-10 17:51:03 +00:00
|
|
|
ansible.builtin.reboot:
|
2021-07-10 12:40:17 +00:00
|
|
|
reboot_timeout: 3600
|
2020-01-13 19:04:49 +00:00
|
|
|
when: upgrade.changed and "linux" in upgrade.packages and system_upgrade and ansible_facts['os_family'] == "Archlinux"
|
2022-02-13 08:40:15 +00:00
|
|
|
become: true
|
2020-01-07 19:44:20 +00:00
|
|
|
|
2023-03-26 13:31:22 +00:00
|
|
|
- name: Install bases software
|
|
|
|
ansible.builtin.package:
|
2022-02-13 08:40:15 +00:00
|
|
|
state: present
|
2022-05-29 16:39:41 +00:00
|
|
|
name: "{{ system_base_softwares }}"
|
2022-02-13 08:40:15 +00:00
|
|
|
become: true
|
2019-09-18 21:14:11 +00:00
|
|
|
|
2022-12-10 17:51:03 +00:00
|
|
|
- name: Install aur workstation soft
|
2021-04-20 18:22:49 +00:00
|
|
|
aur:
|
|
|
|
name: "{{ system_base_aur_soft }}"
|
|
|
|
state: present
|
2022-02-13 08:40:15 +00:00
|
|
|
become: true
|
2021-04-20 18:22:49 +00:00
|
|
|
become_user: aur_builder
|
2022-02-12 09:41:14 +00:00
|
|
|
when: ansible_facts['os_family'] == "Archlinux" and system_base_aur_soft
|
2019-09-18 21:14:11 +00:00
|
|
|
|