forked from Madic-/Sway-DE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup-03-additions-arch.yml
170 lines (159 loc) · 5.14 KB
/
setup-03-additions-arch.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
---
- name: Installing / configuring additional software
hosts: "{{ custom_hosts | default('127.0.0.1') }}"
connection: "{{ custom_connection | default('local') }}"
vars_prompt:
- name: "TYPE"
prompt: "On which hardware type do you install? (gen)eric, (think)pad"
default: "gen"
private: false
vars:
BIN_DIR: "{{ ansible_user_dir }}/.local/bin"
tasks:
- name: Common | Including hardware type task
ansible.builtin.include_tasks: tasks/hw-{{ TYPE }}.yml
- name: Common | Creating directories...
ansible.builtin.file:
owner: "{{ ansible_user_id }}"
group: "{{ ansible_user_id }}"
mode: "0750"
path: "{{ item }}"
state: directory
with_items:
- "{{ BIN_DIR }}"
- "{{ ansible_user_dir }}/.config/Code - OSS"
#- name: Arch !Manjaro tasks
# block:
# - name: Arch !Manjaro | Installing software from aur
# kewlfft.aur.aur:
# name:
# - pamac-aur
# state: latest
when: ansible_lsb.description != "Manjaro Linux" and ansible_distribution == 'Archlinux'
- name: Arch Tasks
when: ansible_distribution == 'Archlinux'
block:
- name: Arch | Installing software from aur
kewlfft.aur.aur:
name:
#- gotop
- ttf-wps-fonts
- wps-office
state: latest
- name: Arch | Installing software
community.general.pacman:
name:
- chromium
- code
- cowsay
# - docker
# - docker-compose
- freerdp
- gnome-keyring
- lsb-release
- networkmanager-openconnect
- remmina
- shfmt
state: installed
update_cache: true
become: true
- name: Arch | Removing software step 1
community.general.pacman:
name:
- accerciser
- gnome-books
- gnome-builder
- dconf-editor
- devhelp
- baobab
- five-or-more
- four-in-a-row
- glade
- gnome-boxes
- gnome-characters
- gnome-chess
- gnome-clocks
- gnome-dictionary
- gnome-font-viewer
- ghex
- hitori
- gnome-klotski
- gnome-logs
- gnome-mahjongg
- gnome-mines
- gnome-nibbles
- gnome-robots
- gnome-sudoku
- gnome-system-monitor
- gnome-taquin
- gnome-tetravex
- gnome-usage
- gnome-documents
- epiphany
- iagno
- ipython
- lightsoff
- gnome-multi-writer
- gnome-nettool
- polari
- quadrapassel
- gnome-recipes
- simple-scan
- gnome-sound-recorder
- swell-foop
- sysprof
- tali
- gnome-todo
- xterm
- totem
- gnome-devel-docs
- gnome-getting-started-docs
- gnome-user-docs
- gnome-music
- gnome-photos
- rygel
- gnome-screenshot
- gnome-weather
- nautilus
- sushi
- nautilus-sendto
state: absent
update_cache: true
become: true
- name: Arch | Removing software step 2
community.general.pacman:
name:
- yelp
state: absent
update_cache: true
become: true
- name: Common | Creating symlink between VS Code - OSS and VS Code - MS for Settings Sync to work...
ansible.builtin.file:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
state: link
with_items:
- { src: "{{ ansible_user_dir }}/.config/Code - OSS", dest: "{{ ansible_user_dir }}/.config/Code" }
#- name: Common | Disabling gdm systemd unit
# ansible.builtin.systemd:
# name: "{{ item }}"
# enabled: false
# daemon_reload: true
# become: true
# with_items:
# - gdm
- name: Common | Enable autologin for gnome-keyring in pam module "login"
community.general.pamd:
name: login
type: "{{ item.type }}"
control: "{{ item.control }}"
module_path: "{{ item.module_path }}"
new_type: "{{ item.new_type }}"
new_control: "{{ item.new_control }}"
new_module_path: "{{ item.new_module_path }}"
state: after
with_items:
- { type: "auth", control: "include", module_path: "system-local-login", new_type: "auth", new_control: "optional", new_module_path: "pam_gnome_keyring.so" }
- { type: "session", control: "include", module_path: "system-local-login", new_type: "session", new_control: "optional", new_module_path: "pam_gnome_keyring.so auto_start" }
become: true
tags: pam