2021-01-31 17:21:39 -06:00
|
|
|
---
|
2021-02-01 05:15:45 -06:00
|
|
|
# Cross-platform package management.
|
2021-01-31 17:21:39 -06:00
|
|
|
|
2021-08-14 10:03:55 -05:00
|
|
|
- name: General | Software | Packages | Fix Parrot OS (zypper)
|
2021-07-11 08:27:00 -05:00
|
|
|
# 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`"
|
2021-07-11 08:38:31 -05:00
|
|
|
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"
|
2021-07-11 08:38:31 -05:00
|
|
|
|
2021-08-14 10:03:55 -05:00
|
|
|
- name: General | Software | Packages | Fix Parrot OS (zypper), Exit Incoming
|
2021-07-11 08:38:31 -05:00
|
|
|
debug:
|
2021-07-11 08:50:24 -05:00
|
|
|
msg: "A silly zypper file was renamed successfully. Please try running Ansible again."
|
2021-07-13 06:03:30 -05:00
|
|
|
when: ansible_distribution == "Parrot OS" and parrotos_zypper_removed is defined and not parrotos_zypper_removed.failed
|
2021-07-11 08:50:24 -05:00
|
|
|
|
2021-08-14 10:03:55 -05:00
|
|
|
- name: General | Software | Packages | Fix Parrot OS (zypper), Exiting
|
2021-07-11 08:50:24 -05:00
|
|
|
shell: exit 1
|
2021-07-13 06:03:30 -05:00
|
|
|
when: ansible_distribution == "Parrot OS" and parrotos_zypper_removed is defined and not parrotos_zypper_removed.failed
|
2021-07-11 08:27:00 -05:00
|
|
|
|
2021-08-14 10:03:55 -05:00
|
|
|
# More Parrot OS junk. They have a command called update in /usr/bin. Doesn't have sudo or anything in it either.
|
|
|
|
# Hide it in preference for .bashrc update function.
|
|
|
|
- name: General | Software | Packages | Fix Parrot OS 2 (update)
|
|
|
|
shell: "mv `which update` `which update`.zz.`date +%Y%m%d`"
|
|
|
|
ignore_errors: yes
|
|
|
|
when: ansible_distribution == "Parrot OS"
|
|
|
|
|
2021-07-11 08:27:00 -05:00
|
|
|
|
2021-02-02 21:28:17 -06:00
|
|
|
- name: General | Software | Packages | Cache Refresh (Apt and Pacman)
|
2021-02-01 06:36:00 -06:00
|
|
|
package:
|
|
|
|
update_cache: yes
|
2021-07-11 08:11:07 -05:00
|
|
|
name: htop
|
2021-02-01 06:36:00 -06:00
|
|
|
when: ansible_pkg_mgr in ["apt", "pacman"]
|
|
|
|
|
2021-02-02 21:28:17 -06:00
|
|
|
- name: General | Software | Packages | Cache Refresh (FreeBSD)
|
2021-02-01 06:52:28 -06:00
|
|
|
shell: pkg update
|
|
|
|
when: ansible_system == "FreeBSD"
|
|
|
|
|
2021-02-02 21:28:17 -06:00
|
|
|
- name: General | Software | Packages | Install Software
|
2020-12-21 04:50:02 -06:00
|
|
|
package:
|
|
|
|
name:
|
2021-02-01 07:04:41 -06:00
|
|
|
- bash
|
2021-02-03 12:38:42 -06:00
|
|
|
- sudo
|
2021-02-03 12:44:06 -06:00
|
|
|
- nmap
|
2020-12-21 04:50:02 -06:00
|
|
|
- neofetch
|
2021-01-31 13:02:29 -06:00
|
|
|
- "{{ sshfs }}"
|
2021-02-02 20:22:36 -06:00
|
|
|
- "{{ locate }}"
|
2021-02-15 07:25:25 -06:00
|
|
|
- zsh
|
2021-02-15 08:42:20 -06:00
|
|
|
- "{{ opensshd }}"
|
2022-01-10 13:41:54 +00:00
|
|
|
- "{{ tar }}"
|
2021-01-31 18:02:37 -06:00
|
|
|
state: present
|
|
|
|
|
2022-03-27 08:14:06 -05:00
|
|
|
- name: General | Software | Packages | Install Software (DEV)
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- "{{ microcode_amd }}"
|
|
|
|
- "{{ microcode_intel }}"
|
|
|
|
state: present
|
|
|
|
when: branch == "dev"
|
|
|
|
ignore_errors: yes
|
|
|
|
|
2021-11-07 12:40:31 -06:00
|
|
|
- name: General | Software | Services | Install CROND (Looking at you, Fedora)
|
|
|
|
package:
|
|
|
|
name: cronie
|
|
|
|
state: present
|
|
|
|
when: ansible_pkg_mgr == "dnf"
|
|
|
|
|
2021-12-17 17:34:21 -06:00
|
|
|
- name: General | Software | Services | Install killall (Looking at you, Debian)
|
|
|
|
package:
|
|
|
|
name: psmisc
|
|
|
|
state: present
|
|
|
|
when: ansible_distribution == "Debian"
|
|
|
|
|
2022-03-27 08:14:06 -05:00
|
|
|
- name: General | Software | Services | Install "Bloat" (Looking at you, Arch Base)
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- which
|
|
|
|
- cronie
|
|
|
|
state: present
|
|
|
|
when: ansible_distribution == "Archlinux"
|
|
|
|
|
2021-02-02 21:28:17 -06:00
|
|
|
- name: General | Software | Packages | Update Software (Disabled)
|
2021-02-01 06:40:23 -06:00
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- ansible
|
|
|
|
- git
|
|
|
|
state: latest
|
2021-02-06 15:38:16 -06:00
|
|
|
when: 1 == 0
|
2021-02-01 06:40:23 -06:00
|
|
|
|
2021-02-02 21:28:17 -06:00
|
|
|
- name: General | Software | Packages | Remove Software
|
2021-01-31 18:02:37 -06:00
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- cowsay # Sorry ;)
|
2021-02-06 15:33:26 -06:00
|
|
|
- chromium
|
|
|
|
- chromium-browser
|
2021-02-01 05:15:45 -06:00
|
|
|
state: absent
|
|
|
|
|
2021-02-14 07:26:58 -06:00
|
|
|
# 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
|
2021-02-14 07:26:58 -06:00
|
|
|
service:
|
|
|
|
name: snapd
|
|
|
|
pattern: snapd
|
|
|
|
state: stopped
|
|
|
|
enabled: no
|
|
|
|
when: ansible_distribution != "Ubuntu"
|
2021-02-14 07:31:01 -06:00
|
|
|
ignore_errors: yes
|
2021-02-14 07:26:58 -06:00
|
|
|
|
2021-02-13 05:47:35 -06:00
|
|
|
- name: General | Software | Packages | Remove Snap (Besides Ubuntu)
|
2021-02-01 05:15:45 -06:00
|
|
|
package:
|
|
|
|
name:
|
2021-02-01 05:03:27 -06:00
|
|
|
- snapd
|
2021-01-31 18:06:02 -06:00
|
|
|
state: absent
|
2021-02-01 05:15:45 -06:00
|
|
|
when: ansible_distribution != "Ubuntu"
|
2021-02-14 07:31:01 -06:00
|
|
|
ignore_errors: yes
|