Add commands and scripts to user. (#7)
* If we're gonig to exit then we should be more sure about our messaging. * Only have GIMP installed from Flatpak. * Playbook is causing Ubuntu 20.04 to fail. * Define gnome_install.failed since some Ansible versions are picky. * Try again for mad non-Parrot versions of Ansible. * Add debug. * Still trying to make Ubuntu 20.04's Ansible happy. * Fix typos. * Ubuntu does not need to install Dash To Dock. Also ensure `make` is installed on other distros so that the project is compiled. * Remove debug. * Add remount and upgrade commands to RC files. * Copy root scripts to also be for user. * Call the new user script. * Add new commands to rc_common so they're added to the rc files. * Remove update file on Parrot OS.
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
---
|
||||
# Cross-platform package management.
|
||||
|
||||
- name: General | Software | Packages | Fix Parrot OS
|
||||
- name: General | Software | Packages | Fix Parrot OS (zypper)
|
||||
# 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.
|
||||
@ -10,15 +10,22 @@
|
||||
ignore_errors: yes
|
||||
when: ansible_distribution == "Parrot OS"
|
||||
|
||||
- name: General | Software | Packages | Fixed Parrot OS, Exit Incoming
|
||||
- name: General | Software | Packages | Fix Parrot OS (zypper), Exit Incoming
|
||||
debug:
|
||||
msg: "A silly zypper file was renamed successfully. Please try running Ansible again."
|
||||
when: ansible_distribution == "Parrot OS" and parrotos_zypper_removed is defined and not parrotos_zypper_removed.failed
|
||||
|
||||
- name: General | Software | Packages | Fixed Parrot OS, Exiting
|
||||
- name: General | Software | Packages | Fix Parrot OS (zypper), Exiting
|
||||
shell: exit 1
|
||||
when: ansible_distribution == "Parrot OS" and parrotos_zypper_removed is defined and not parrotos_zypper_removed.failed
|
||||
|
||||
# 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"
|
||||
|
||||
|
||||
- name: General | Software | Packages | Cache Refresh (Apt and Pacman)
|
||||
package:
|
||||
|
Reference in New Issue
Block a user