optimisation
This commit is contained in:
parent
8c4c1a2650
commit
5c2b11d89d
@ -5,8 +5,7 @@
|
||||
force: true # not required. When removing package - force remove package, without any checks. When update_cache - force redownload repo databases.
|
||||
update_cache: false
|
||||
become: yes
|
||||
when: system_upgrade
|
||||
register: upgrade
|
||||
when: system_upgrade and ansible_facts['os_family'] == "Archlinux"
|
||||
|
||||
- name: upgrade system
|
||||
pacman:
|
||||
@ -15,13 +14,13 @@
|
||||
force: true # not required. When removing package - force remove package, without any checks. When update_cache - force redownload repo databases.
|
||||
update_cache: false
|
||||
become: yes
|
||||
when: system_upgrade
|
||||
when: system_upgrade and ansible_facts['os_family'] == "Archlinux"
|
||||
register: upgrade
|
||||
|
||||
- name: Reboot updates to apply
|
||||
reboot:
|
||||
reboot_timeout: 3600
|
||||
when: upgrade.changed and "linux" in upgrade.packages and system_upgrade
|
||||
when: upgrade.changed and "linux" in upgrade.packages and system_upgrade and ansible_facts['os_family'] == "Archlinux"
|
||||
become: yes
|
||||
|
||||
- name: launch arch base install software
|
||||
|
@ -7,5 +7,4 @@
|
||||
when: ansible_facts['os_family'] == "Debian"
|
||||
- include_tasks: AUR_builder.yml
|
||||
when: ansible_facts['os_family'] == "Archlinux"
|
||||
|
||||
- include_tasks: base_software.yml
|
Loading…
Reference in New Issue
Block a user