2021-02-01 07:14:03 -06:00

45 lines
845 B
YAML

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