48 lines
1.0 KiB
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
2021-02-03 12:44:06 -06:00
- nmap
- 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-06 15:38:16 -06:00
when: 1 == 0
2021-02-02 21:28:17 -06:00
- name: General | Software | Packages | Remove Software
package:
name:
- cowsay # Sorry ;)
2021-02-06 15:33:26 -06:00
- chromium
- chromium-browser
state: absent
# TODO: Confirm if Ubuntu still uses snap for critical components like GNOME.
2021-02-13 05:47:35 -06:00
- name: General | Software | Packages | Remove Snap (Besides Ubuntu)
package:
name:
- snapd
state: absent
when: ansible_distribution != "Ubuntu"