40 lines
797 B
YAML
Raw Normal View History

---
# Cross-platform package management.
- name: Install Repo Software
package:
name:
- sudo
- htop
- neofetch
2021-01-31 13:02:29 -06:00
- "{{ sshfs }}"
- locate
state: present
2021-02-01 05:55:24 -06:00
- name: Testing Package Cache Refresh
package:
update_cache: yes
when: ansible_os_family == "Debian"
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
2021-02-01 06:06:18 -06:00
when: ansible_pkg_mgr == "apt"
2021-02-01 05:54:38 -06:00
- name: Remove Repo Software
package:
name:
- cowsay # Sorry ;)
state: absent
# TODO: Confirm if Ubuntu still uses snap for critical UI components like GNOME.
- name: Remove Repo Software
package:
name:
- snapd
state: absent
when: ansible_distribution != "Ubuntu"