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
|
|
|
|
2021-02-01 06:52:28 -06:00
|
|
|
- name: Repo Cache Refresh (Apt and Pacman)
|
2021-02-01 06:36:00 -06:00
|
|
|
package:
|
|
|
|
update_cache: yes
|
|
|
|
when: ansible_pkg_mgr in ["apt", "pacman"]
|
|
|
|
|
2021-02-01 06:52:28 -06:00
|
|
|
- name: Repo Cache Refresh (FreeBSD)
|
|
|
|
shell: pkg update
|
|
|
|
when: ansible_system == "FreeBSD"
|
|
|
|
|
2021-02-01 06:43:32 -06:00
|
|
|
- name: Repo Install Software
|
2020-12-21 04:50:02 -06:00
|
|
|
package:
|
|
|
|
name:
|
2021-02-01 07:04:41 -06:00
|
|
|
- bash
|
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 07:04:41 -06:00
|
|
|
- name: Repo Update Software (Disabled)
|
2021-02-01 06:40:23 -06:00
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- ansible
|
|
|
|
- git
|
|
|
|
- sudo
|
|
|
|
state: latest
|
2021-02-01 07:04:41 -06:00
|
|
|
when: "1" == "0"
|
2021-02-01 06:40:23 -06:00
|
|
|
|
2021-02-01 06:43:32 -06:00
|
|
|
- name: Repo Remove Software
|
2021-01-31 18:02:37 -06:00
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- cowsay # Sorry ;)
|
2021-02-01 05:15:45 -06:00
|
|
|
state: absent
|
|
|
|
|
2021-02-01 06:40:23 -06:00
|
|
|
# TODO: Confirm if Ubuntu still uses snap for critical components like GNOME.
|
2021-02-01 06:43:32 -06:00
|
|
|
- name: Repo Remove Software (Besides Ubuntu)
|
2021-02-01 05:15:45 -06:00
|
|
|
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"
|