Enable Gnome on FreeBSD
This commit is contained in:
parent
429be8acb8
commit
bf3cad026e
2 changed files with 46 additions and 1 deletions
44
roles/freebsd/tasks/gnome.yml
Normal file
44
roles/freebsd/tasks/gnome.yml
Normal file
|
@ -0,0 +1,44 @@
|
|||
---
|
||||
# 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 Gnome packages
|
||||
become: true
|
||||
community.general.pkgng:
|
||||
name: gnome
|
||||
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 Gnome services at boot
|
||||
become: true
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/rc.conf
|
||||
regexp: '^gnome_enable=.*'
|
||||
line: 'gnome_enable="YES"'
|
||||
- name: Start GDM at boot
|
||||
become: true
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/rc.conf
|
||||
regexp: '^gdm_enable=.*'
|
||||
line: 'gdm_enable="YES"'
|
||||
- name: Mount /proc at boot
|
||||
become: true
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/fstab
|
||||
regexp: '^.*\s+\/proc\s+.*'
|
||||
line: 'proc /proc procfs rw 0 0'
|
|
@ -23,4 +23,5 @@
|
|||
when: gui == true
|
||||
- import_tasks: qemu-guest.yml
|
||||
when: gui == true and ansible_virtualization_role == "guest" and ansible_virtualization_type == "kvm"
|
||||
|
||||
- import_tasks: gnome.yml
|
||||
when: gui == true
|
||||
|
|
Loading…
Reference in a new issue