79 lines
2.1 KiB
YAML
Raw Normal View History

---
# Cross-platform package management.
2021-07-11 08:30:32 -05:00
- name: General | Software | Packages | Fix Parrot OS
# They have zypper higher in the path, but it's really apt renamed.
# Probably for "security", but package module does not use the ansible_pkg_mgr variable
# so resetting the value to apt doesn't work. Just going to move it.
2021-07-11 08:28:32 -05:00
shell: "mv `which zypper` `which zypper`.zz.`date +%Y%m%d`"
register: parrotos_zypper_removed
2021-07-11 08:40:33 -05:00
ignore_errors: yes
2021-07-11 08:31:05 -05:00
when: ansible_distribution == "Parrot OS"
- name: General | Software | Packages | Fixed Parrot OS, Exit Incoming
debug:
msg: "A silly zypper file was renamed successfully. Please try running Ansible again."
when: parrotos_zypper_removed is defined and not parrotos_zypper_removed.failed
- name: General | Software | Packages | Fixed Parrot OS, Exiting
shell: exit 1
when: parrotos_zypper_removed is defined and not parrotos_zypper_removed.failed
2021-02-02 21:28:17 -06:00
- name: General | Software | Packages | Cache Refresh (Apt and Pacman)
package:
update_cache: yes
name: htop
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
2021-02-03 12:44:06 -06:00
- nmap
- neofetch
2021-01-31 13:02:29 -06:00
- "{{ sshfs }}"
- "{{ locate }}"
- zsh
2021-02-15 08:42:20 -06:00
- "{{ opensshd }}"
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
# Ubuntu still uses snap for critical components like GNOME, must keep.
2021-02-14 07:29:35 -06:00
- name: General | Software | Services | Disable Snap Daemon
service:
name: snapd
pattern: snapd
state: stopped
enabled: no
when: ansible_distribution != "Ubuntu"
ignore_errors: yes
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"
ignore_errors: yes