43 lines
806 B
YAML
Raw Normal View History

---
# 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"
2021-02-01 06:43:32 -06:00
- name: Repo Install Software
package:
name:
- htop
- neofetch
2021-01-31 13:02:29 -06:00
- "{{ sshfs }}"
- locate
state: present
2021-02-01 06:43:32 -06:00
- name: Repo Update Software
package:
name:
- ansible
- git
- sudo
state: latest
2021-02-01 06:43:32 -06:00
- name: Repo Remove Software
package:
name:
- cowsay # Sorry ;)
state: absent
# 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)
package:
name:
- snapd
state: absent
when: ansible_distribution != "Ubuntu"