system/tasks/base_software.yml
2023-03-26 15:31:22 +02:00

40 lines
1.0 KiB
YAML

- name: Upgrade arch-keyring
community.general.pacman:
state: latest # noqa package-latest
name: archlinux-keyring
force: true
update_cache: false
become: true
when: ansible_facts['os_family'] == "Archlinux"
- name: Upgrade system
community.general.pacman:
state: latest # noqa package-latest
upgrade: true
force: true
update_cache: false
become: true
when: system_upgrade and ansible_facts['os_family'] == "Archlinux"
register: upgrade
- name: Reboot updates to apply
ansible.builtin.reboot:
reboot_timeout: 3600
when: upgrade.changed and "linux" in upgrade.packages and system_upgrade and ansible_facts['os_family'] == "Archlinux"
become: true
- name: Install bases software
ansible.builtin.package:
state: present
name: "{{ system_base_softwares }}"
become: true
- name: Install aur workstation soft
aur:
name: "{{ system_base_aur_soft }}"
state: present
become: true
become_user: aur_builder
when: ansible_facts['os_family'] == "Archlinux" and system_base_aur_soft