Add support for openSUSE (#35)
* Add openSUSE for initial testing. * Add package names for openSUSE Zypper. * Add commands for Zypper. Do apt clean after autoremove. * Add cronie to openSUSE. * Remove warn parameter for newer version of Ansible. * Commenting warn worked, removing it completely. * Add libvulkan1 since it's a dependency for GNOME. * Fix order of lynis and nmap. Thought I had already done this before? * Start adding package names for openSUSE. * Create the sshd_config file if it is not already present. * Fix OS in conditional. * Save the command for checking ansible variables. * Use openSUSE family since Tumbleweed and Leap are considered different distros. * Get rid of 2nd flathub repo, no longer use the dl. version.. * Add status update for openSUSE. * Reword sentence. * Add Brave Browser to openSUSE. * Script is running successfully now when Workstation is enabled. * Add status of openSUSE Leap. * Add space. * No longer use install-new-recommends.
This commit is contained in:
@ -52,6 +52,16 @@
|
||||
cron: cronie
|
||||
when: ansible_pkg_mgr == "dnf"
|
||||
|
||||
- name: General | Facts | Package | zypper
|
||||
set_fact:
|
||||
sshfs: sshfs
|
||||
locate: mlocate
|
||||
opensshd: openssh
|
||||
tar: tar
|
||||
microcode_amd: ucode-amd
|
||||
microcode_intel: ucode-intel
|
||||
when: ansible_pkg_mgr == "zypper"
|
||||
|
||||
|
||||
- name: General | Facts | Package | Update Commands | Helpers
|
||||
set_fact:
|
||||
@ -67,8 +77,8 @@
|
||||
update_package_manager: |
|
||||
echo "*** Apt ***" &&
|
||||
sudo apt update &&
|
||||
sudo apt clean {{ update_accept_var }} &&
|
||||
sudo apt autoremove {{ update_accept_var }} &&
|
||||
sudo apt clean {{ update_accept_var }} &&
|
||||
sudo dpkg --configure -a &&
|
||||
sudo apt --fix-broken --fix-missing install &&
|
||||
sudo apt dist-upgrade --allow-downgrades --fix-broken --fix-missing {{ update_accept_var }} &&
|
||||
@ -132,6 +142,22 @@
|
||||
sudo dnf upgrade {{ update_accept_var }} &&
|
||||
when: ansible_pkg_mgr in ("dnf")
|
||||
|
||||
- name: General | Facts | Package | Update Commands | zypper
|
||||
set_fact:
|
||||
update_package_manager: |
|
||||
echo "*** Zypper ***" &&
|
||||
sudo zypper refresh &&
|
||||
sudo zypper cleanlocks &&
|
||||
sudo zypper purge-kernels &&
|
||||
sudo zypper clean -a &&
|
||||
sudo zypper patch {{ update_accept_var }} &&
|
||||
sudo zypper update {{ update_accept_var }} &&
|
||||
sudo zypper dist-upgrade {{ update_accept_var }} &&
|
||||
# This is a neat feature, but is installing things like GIMP from the
|
||||
# repos when it is already installed through Flatpak, so not needed.
|
||||
#sudo zypper install-new-recommends &&
|
||||
when: ansible_pkg_mgr in ("zypper")
|
||||
|
||||
|
||||
- name: General | Facts | Package | Update Commands | flatpak | check
|
||||
shell: which flatpak
|
||||
|
Reference in New Issue
Block a user