Show result, update archlinux
This commit is contained in:
parent
3e0b8bda41
commit
52725aa7a0
@ -4,11 +4,28 @@
|
|||||||
upgrade: safe
|
upgrade: safe
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
when: ansible_facts['os_family'] == "Debian"
|
when: ansible_facts['os_family'] == "Debian"
|
||||||
|
register: update_debian_result
|
||||||
|
|
||||||
- name: Remove orphans
|
- name: Remove orphans
|
||||||
apt:
|
apt:
|
||||||
autoremove: yes
|
autoremove: yes
|
||||||
purge: yes
|
purge: yes
|
||||||
when: ansible_facts['os_family'] == "Debian"
|
when: ansible_facts['os_family'] == "Debian"
|
||||||
|
register: prune_debian_result
|
||||||
|
|
||||||
|
- name: Update Archlinux packages
|
||||||
|
pacman:
|
||||||
|
update_cache: yes
|
||||||
|
upgrade: yes
|
||||||
|
when: ansible_facts['os_family'] == "Archlinux"
|
||||||
|
register: update_archlinux_result
|
||||||
|
|
||||||
|
- name: Show updated debian packages
|
||||||
|
debug: msg="{{update_debian_result.stdout_lines}}"
|
||||||
|
when: ansible_facts['os_family'] == "Debian"
|
||||||
|
- name: Show pruned debian packages
|
||||||
|
debug: msg="{{prune_debian_result.stdout_lines}}"
|
||||||
|
when: ansible_facts['os_family'] == "Debian"
|
||||||
|
- name: Show updated archlinux packages
|
||||||
|
debug: msg="{{update_archlinux_result.stdout_lines}}"
|
||||||
|
when: ansible_facts['os_family'] == "Archlinux"
|
||||||
|
Loading…
Reference in New Issue
Block a user