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

@ -72,11 +72,11 @@
when: ansible_distribution == "Ubuntu"
ignore_errors: yes
- name: General | Software | Services | Install CROND (Looking at you, Fedora)
- name: General | Software | Services | Install CROND (Looking at you, Fedora+Mobian+openSUSE)
package:
name: "{{ cron }}"
state: present
when: ansible_pkg_mgr == "dnf" or ansible_distribution == "Mobian"
when: ansible_pkg_mgr in ("dnf", "zypper") or ansible_distribution == "Mobian"
- name: General | Software | Services | Install killall (Looking at you, Debian)
package:
@ -93,6 +93,16 @@
state: present
when: ansible_distribution == "Archlinux"
# openSUSE Tumbleweed comes without gnome-control-center being able to open
# properly. Hopefully just a one-time accident but I wanted bleeding edge so I
# guess I got it! Luckily was easy to figure out based on CLI error launching.
- name: General | Software | Services | Install Fix (Looking at you, openSUSE)
package:
name:
- libvulkan1
state: present
when: ansible_pkg_mgr in ("zypper")
- name: General | Software | Packages | Update Software (Disabled)
package:
name:

View File

@ -36,7 +36,7 @@
regexp: '{{ item.key }}'
line: '{{ item.value }} # MANAGED BY ANSIBLE'
state: present
create: no
create: yes
backup: yes
loop:
- { "key": '^[\#]?AllowUsers', "value": 'AllowUsers {{ user }}'}
@ -60,7 +60,7 @@
regexp: '{{ item.key }}'
line: '{{ item.value }} # MANAGED BY ANSIBLE'
state: present
create: no
create: yes
backup: yes
loop:
- { "key": '^[\#]?AllowUsers', "value": 'AllowUsers root {{ user }}'}

View File

@ -48,7 +48,6 @@
shell: "{{ item }}"
args:
chdir: "{{ ansible_env.HOME }}/Downloads/"
warn: false
loop:
- mkdir -p {{ telegraf_path }}
- mkdir -p {{ telegraf_config_path }}