2021-01-31 17:21:39 -06:00
|
|
|
---
|
2021-02-01 05:15:45 -06:00
|
|
|
# Cross-platform package management.
|
2021-01-31 17:21:39 -06:00
|
|
|
|
2020-12-21 04:50:02 -06:00
|
|
|
- name: Install Repo Software
|
|
|
|
package:
|
|
|
|
name:
|
2021-01-31 17:14:08 -06:00
|
|
|
- sudo
|
2020-12-21 04:50:02 -06:00
|
|
|
- htop
|
|
|
|
- neofetch
|
2021-01-31 13:02:29 -06:00
|
|
|
- "{{ sshfs }}"
|
2021-01-31 18:02:37 -06:00
|
|
|
- locate
|
|
|
|
state: present
|
|
|
|
|
2021-02-01 05:55:24 -06:00
|
|
|
- name: Testing Package Cache Refresh
|
2021-02-01 05:40:39 -06:00
|
|
|
package:
|
|
|
|
update_cache: yes
|
2021-02-01 06:04:35 -06:00
|
|
|
when: ansible_os_family in ["Debian", "Ubuntu"]
|
2021-02-01 05:40:39 -06:00
|
|
|
|
2021-02-01 05:55:24 -06:00
|
|
|
- name: Testing Apt Cache Refresh
|
2021-02-01 05:54:38 -06:00
|
|
|
apt: update_cache=yes
|
2021-02-01 06:04:35 -06:00
|
|
|
when: ansible_distribution in ["Debian", "Ubuntu"]
|
|
|
|
|
|
|
|
- name: Testing Apt Cache Refresh 2
|
|
|
|
apt: update_cache=yes
|
|
|
|
when: ansible_pkg_mgr = "apt"
|
2021-02-01 05:54:38 -06:00
|
|
|
|
2021-01-31 18:02:37 -06:00
|
|
|
- name: Remove Repo Software
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- cowsay # Sorry ;)
|
2021-02-01 05:15:45 -06:00
|
|
|
state: absent
|
|
|
|
|
|
|
|
# TODO: Confirm if Ubuntu still uses snap for critical UI components like GNOME.
|
|
|
|
- name: Remove Repo Software
|
|
|
|
package:
|
|
|
|
name:
|
2021-02-01 05:03:27 -06:00
|
|
|
- snapd
|
2021-01-31 18:06:02 -06:00
|
|
|
state: absent
|
2021-02-01 05:15:45 -06:00
|
|
|
when: ansible_distribution != "Ubuntu"
|