45 lines
1015 B
YAML
Raw Normal View History

---
# Cross-platform package management.
2021-02-02 21:28:17 -06:00
- name: General | Software | Packages | Cache Refresh (Apt and Pacman)
package:
update_cache: yes
when: ansible_pkg_mgr in ["apt", "pacman"]
2021-02-02 21:28:17 -06:00
- name: General | Software | Packages | Cache Refresh (FreeBSD)
shell: pkg update
when: ansible_system == "FreeBSD"
2021-02-02 21:28:17 -06:00
- name: General | Software | Packages | Install Software
package:
name:
- bash
- sudo
- htop
- neofetch
2021-01-31 13:02:29 -06:00
- "{{ sshfs }}"
- "{{ locate }}"
state: present
2021-02-02 21:28:17 -06:00
- name: General | Software | Packages | Update Software (Disabled)
package:
name:
- ansible
- git
state: latest
2021-02-01 07:14:03 -06:00
when: "1 == 0"
2021-02-02 21:28:17 -06:00
- name: General | Software | Packages | Remove Software
package:
name:
- cowsay # Sorry ;)
state: absent
# TODO: Confirm if Ubuntu still uses snap for critical components like GNOME.
2021-02-02 21:28:17 -06:00
- name: General | Software | Packages | Remove Software (Besides Ubuntu)
package:
name:
- snapd
state: absent
when: ansible_distribution != "Ubuntu"