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:
2023-02-18 09:29:36 -06:00
committed by GitHub
parent 50554dfcb4
commit 904dda6883
10 changed files with 78 additions and 15 deletions

View File

@ -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

View File

@ -89,3 +89,12 @@
font_awesome: python3-XStatic-Font-Awesome
nfs: nfs-utils
when: ansible_distribution == "Fedora"
- name: Workstation | Facts | Package | openSUSE
set_fact:
flatpak_distro: true
firefox_esr: firefox-esr-branding-openSUSE
font_awesome: fontawesome-fonts
nfs: utils-libnfs
when: ansible_os_family == "Suse"