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

@ -85,6 +85,10 @@ if [[ `which ansible > /dev/null; echo $?` != 0 ]]; then
sudo dnf install -y ansible git python3-libselinux
sudo mkdir -p /etc/ansible
sudo sh -c 'echo "localhost ansible_connection=local" > /etc/ansible/hosts'
elif [[ $os == *openSUSE* ]]; then
sudo zypper install -y ansible git
sudo mkdir -p /etc/ansible
sudo sh -c 'echo "localhost ansible_connection=local" > /etc/ansible/hosts'
else
echo -e "ERROR: OS not detected."
echo -e "$os"