- move lubuntu-desktop to its own role
This commit is contained in:
@@ -12,4 +12,3 @@ dependency_packages:
|
||||
- libpcap-dev
|
||||
- libsctp-dev
|
||||
- chromium-browser
|
||||
- lubuntu-desktop
|
||||
|
||||
15
roles/lubuntu/files/lxqt-powermanagement.conf
Normal file
15
roles/lubuntu/files/lxqt-powermanagement.conf
Normal file
@@ -0,0 +1,15 @@
|
||||
[General]
|
||||
__userfile__=true
|
||||
backlightIdleness=0
|
||||
backlightIdlenessOnBatteryDischarging=true
|
||||
disableIdlenessWhenFullscreen=false
|
||||
enableBatteryWatcher=false
|
||||
enableIdlenessBacklightWatcher=false
|
||||
enableIdlenessWatcher=false
|
||||
enableLidWatcher=false
|
||||
idlenessACAction=-1
|
||||
idlenessACTime=@Variant(\0\0\0\xf\0\r\xbb\xa0)
|
||||
idlenessBatteryAction=-1
|
||||
idlenessBatteryTime=@Variant(\0\0\0\xf\0\r\xbb\xa0)
|
||||
idlenessTime=@Variant(\0\0\0\xf\0\0\x3\xe8)
|
||||
runCheckLevel=1
|
||||
23
roles/lubuntu/tasks/main.yaml
Normal file
23
roles/lubuntu/tasks/main.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
|
||||
- name: install required packages
|
||||
become: true
|
||||
package:
|
||||
name: "{{ dependency_packages }}"
|
||||
state: present
|
||||
- name: sddm autologin
|
||||
become: yes
|
||||
template:
|
||||
src: "{{ role_path }}/templates/sddm.conf.j2"
|
||||
dest: /etc/sddm.conf
|
||||
owner: root
|
||||
|
||||
- name: screensaver
|
||||
ansible.builtin.copy:
|
||||
src: "{{ role_path }}/files/lxqt-powermanagement.conf"
|
||||
dest: "/home/{{ def_username }}/.config/lxqt"
|
||||
owner: "{{ def_username }}"
|
||||
group: "{{ def_username }}"
|
||||
tags: powermanagement
|
||||
|
||||
|
||||
7
roles/lubuntu/templates/hosts.j2
Normal file
7
roles/lubuntu/templates/hosts.j2
Normal file
@@ -0,0 +1,7 @@
|
||||
{% for item in ansible_play_batch %}
|
||||
{{ hostvars[item].ansible_host }} {{ item }}.demo.dsfinancial.com
|
||||
{% endfor %}
|
||||
|
||||
{% for item in ansible_play_batch %}
|
||||
{{ hostvars[item].ansible_host }} {{ item }}
|
||||
{% endfor %}
|
||||
4
roles/lubuntu/templates/sddm.conf.j2
Normal file
4
roles/lubuntu/templates/sddm.conf.j2
Normal file
@@ -0,0 +1,4 @@
|
||||
[Autologin]
|
||||
User={{ def_username }}
|
||||
Session=lxqt.desktop
|
||||
Relogin=
|
||||
Reference in New Issue
Block a user