-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdesktop-i3.yml
54 lines (47 loc) · 1.19 KB
/
desktop-i3.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
- name: i3 Configuration
hosts: localhost
vars:
i3_config_dir: "/home/{{ user.account }}/.config/i3"
tasks:
- name: i3 with lightdm and utils
become: true
dnf:
name:
- "@X Window System"
- i3
- lightdm
- slick-greeter
- firefox
state: present
- name: i3 config directory
file:
path: "{{ i3_config_dir }}"
state: directory
owner: "{{ user.account }}"
group: "{{ user.account }}"
- name: i3 config
copy:
src: files/i3.vmware.config
dest: "{{ i3_config_dir }}/config"
owner: "{{ user.account }}"
group: "{{ user.account }}"
mode: 0664
- name: enable lightdm
become: true
systemd:
name: lightdm
enabled: yes
- name: get default target
command: "systemctl get-default"
register: default_target
changed_when: default_target.stdout != "graphical.target"
notify: set graphical target
args:
warn: false
handlers:
- name: set graphical target
become: true
command: "systemctl set-default graphical.target"
args:
warn: false