From ea573c06946d6d2565803e600cf25bffff7fe94e Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Wed, 4 Oct 2023 14:02:23 +0100 Subject: [PATCH] Install KDE Plasma on FreeBSD --- roles/freebsd/tasks/kde.yml | 38 ++++++++++++++++++++++++++++++++++ roles/freebsd/tasks/main.yml | 2 +- roles/freebsd/tasks/sysctl.yml | 14 +++++++++++++ 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 roles/freebsd/tasks/kde.yml diff --git a/roles/freebsd/tasks/kde.yml b/roles/freebsd/tasks/kde.yml new file mode 100644 index 0000000..11e9473 --- /dev/null +++ b/roles/freebsd/tasks/kde.yml @@ -0,0 +1,38 @@ +--- +# Copyright 2021-2023 Anthony Perkins +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +- name: Install KDE Plasma packages + become: true + community.general.pkgng: + name: kde5,sddm + state: present +- name: Start dbus at boot + become: true + ansible.builtin.lineinfile: + path: /etc/rc.conf + regexp: '^dbus_enable=.*' + line: 'dbus_enable="YES"' +- name: Start SDDM at boot + become: true + ansible.builtin.lineinfile: + path: /etc/rc.conf + regexp: '^sddm_enable=.*' + line: 'sddm_enable="YES"' +- name: Set SDDM keyboard language + become: true + ansible.builtin.lineinfile: + path: /etc/rc.conf + regexp: '^sddm_lang=.*' + line: 'sddm_lang="en_GB"' diff --git a/roles/freebsd/tasks/main.yml b/roles/freebsd/tasks/main.yml index 807eb32..cf33187 100644 --- a/roles/freebsd/tasks/main.yml +++ b/roles/freebsd/tasks/main.yml @@ -23,5 +23,5 @@ when: gui == true - import_tasks: qemu-guest.yml when: ansible_virtualization_role == "guest" and ansible_virtualization_type == "kvm" -- import_tasks: gnome.yml +- import_tasks: kde.yml when: gui == true diff --git a/roles/freebsd/tasks/sysctl.yml b/roles/freebsd/tasks/sysctl.yml index 0a86f96..8c7c169 100644 --- a/roles/freebsd/tasks/sysctl.yml +++ b/roles/freebsd/tasks/sysctl.yml @@ -41,3 +41,17 @@ value: '0' sysctl_set: yes sysctl_file: /etc/sysctl.conf.local +- name: Increase net.local.stream.recvspace messages size + become: true + ansible.posix.sysctl: + name: net.local.stream.recvspace + value: '65536' + sysctl_set: yes + sysctl_file: /etc/sysctl.conf.local +- name: Increase net.local.stream.sendspace messages size + become: true + ansible.posix.sysctl: + name: net.local.stream.sendspace + value: '65536' + sysctl_set: yes + sysctl_file: /etc/sysctl.conf.local