-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.yml
44 lines (37 loc) · 1.01 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
---
- hosts: all
gather_facts: yes
vars_files:
- vars/default.config.yml
pre_tasks:
- name: Include playbook configuration
include_vars: "{{ item }}"
with_fileglob:
- "{{ playbook_dir }}/config.yml"
tags: ['always']
- name: Run distro specific pre-tasks
include_tasks:
file: "tasks/setup_pre_tasks/{{ ansible_distribution }}.yml"
apply:
tags: ['always']
tags: ['always']
tasks:
- name: Install packages
block:
- import_tasks: tasks/flatpak.yml
tags: ['flatpak']
- import_tasks: tasks/packages.yml
tags: ['packages']
- name: Set zsh as default shell for user
become: yes
user:
name: "{{ ansible_user_id }}"
shell: "/usr/bin/zsh"
state: present
tags: ['terminal']
- name: Init dotfiles
import_tasks: tasks/init_dotfiles.yml
tags: ['dotfiles']
- name: Configure Gnome DE
import_tasks: tasks/gnome.yml
tags: ['gnome', 'de']