-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.yml
106 lines (87 loc) · 3.06 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
---
- 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"
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: 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: geerlingguy.dotfiles
when: configure_dotfiles
- role: stefangweichinger.ansible_rclone
when: install_rclone
tasks:
- 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) }}"