-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.yml
143 lines (119 loc) · 4.12 KB
/
main.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
---
- name: Define hosts
hosts: all
vars_files:
- default.config.yml
pre_tasks:
- name: SSH and become checks
ansible.builtin.include_tasks: tasks/site.yml
- name: Load config
ansible.builtin.include_vars: "{{ item }}"
with_fileglob:
- "{{ playbook_dir }}/config.yml"
- name: Validate config
ansible.builtin.include_tasks: tasks/validate-config.yml
- name: Install packages
ansible.builtin.include_tasks: tasks/packages.yml
when: install_packages
- name: Install Home Manager
ansible.builtin.include_tasks: tasks/home-manager.yml
when: install_home_manager
- name: Install zsh
ansible.builtin.include_tasks: tasks/zsh.yml
when: install_zsh
handlers:
- name: Restart gnome
ansible.builtin.command: killall -SIGQUIT gnome-shell
changed_when: true
- name: Delete openrgb repo
ansible.builtin.file:
path: "{{ ansible_env.HOME }}/OpenRGB"
state: absent
- name: Delete openrgb generated files
ansible.builtin.file:
path: "{{ ansible_env.HOME }}/{{ item }}"
state: absent
with_items:
- "openrgb_{{ openrgb_deb_version }}_{{ openrgb_deb_architecture }}.buildinfo"
- "openrgb_{{ openrgb_deb_version }}_{{ openrgb_deb_architecture }}.changes"
- "openrgb_{{ openrgb_deb_version }}_{{ openrgb_deb_architecture }}.deb"
- "openrgb-dbgsym_{{ openrgb_deb_version }}_{{ openrgb_deb_architecture }}.deb"
- "OpenRGB/debian/changelog"
roles:
- role: staticdev.firefox
when: configure_firefox
- role: staticdev.brave
when: install_brave
- role: geerlingguy.docker
when: install_docker
become: true
- role: robertdebock.obsproject
when: install_obs
become: true
- role: gantsign.golang
when: golang_developer
- role: geerlingguy.nodejs
when: nodejs_developer
become: true
- role: staticdev.pyenv
when: python_developer
- role: staticdev.python_developer
when: python_developer
- role: staticdev.signal
when: install_signal
- role: green_leader.codium
when: install_vscodium
become: true
- role: geerlingguy.dotfiles
when: configure_dotfiles
- role: stefangweichinger.ansible_rclone
when: install_rclone
tasks:
- name: Install Pycharm
ansible.builtin.include_tasks: tasks/pycharm.yml
when: install_pycharm
- name: Office setup
ansible.builtin.include_tasks: tasks/office.yml
when: install_onlyoffice or remove_libreoffice
- name: Extra packages
ansible.builtin.include_tasks: tasks/extra-packages.yml
when: install_extra_packages
- name: Create SSH key
ansible.builtin.include_tasks: tasks/ssh.yml
when: configure_ssh
- name: Configure sudoers
ansible.builtin.include_tasks: tasks/sudoers.yml
when: configure_sudoers
- name: Setup Git
ansible.builtin.include_tasks: tasks/git-setup.yml
when: setup_git
- name: Cryptomator
ansible.builtin.include_tasks: tasks/cryptomator.yml
when: install_cryptomator
- name: Install Keypass XC
ansible.builtin.import_tasks: tasks/keypass-xc.yml
when: install_keypass_xc
- name: OpenRGB
ansible.builtin.include_tasks: tasks/openrgb.yml
when: install_openrgb
- name: Enable entire screen sharing
ansible.builtin.lineinfile:
dest: /etc/gdm3/daemon.conf
regexp: '^#\s*WaylandEnable=false.*$'
line: "WaylandEnable=false"
become: true
when: enable_screen_sharing
- name: Gnome Setup
ansible.builtin.import_tasks: tasks/gnome-setup.yml
when: gnome_setup
- name: Configure keyboard
ansible.builtin.import_tasks: tasks/keyboard.yml
when: configure_keyboard
- name: Configure terminal
ansible.builtin.include_tasks: tasks/terminal.yml
when: configure_terminal
- name: Run configured post-provision ansible task files.
ansible.builtin.include_tasks: "{{ outer_item }}"
loop_control:
loop_var: outer_item
with_fileglob: "{{ post_provision_tasks | default(omit) }}"