-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.yml
96 lines (80 loc) · 2.5 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
---
- name: Ubuntu Playbook!
hosts: all
vars_files:
- example.config.yml
pre_tasks:
- name: Include main playbook configuration.
ansible.builtin.include_vars: "{{ item }}"
with_fileglob:
- "{{ playbook_dir }}/config.yml"
tags: ["always"]
roles:
- role: geerlingguy.dotfiles
when: configure_dotfiles
tags: ["dotfiles"]
- role: petermosmans.customize-gnome
when: configure_gnome
tags: ["gnome"]
tasks:
- name: Include apt packages task configuration.
ansible.builtin.import_tasks:
file: tasks/apt.yml
tags: ["apt"]
- name: Include directories task configuration.
ansible.builtin.import_tasks:
file: tasks/directories.yml
tags: ["dirs"]
- name: Include flatpak packages task configuration.
ansible.builtin.import_tasks:
file: tasks/flatpak.yml
tags: ["flatpak"]
when: install_flatpak
- name: Include fonts task configuration.
ansible.builtin.import_tasks:
file: tasks/fonts.yml
when: install_fonts
tags: ["fonts"]
- name: Include homebrew task configuration.
ansible.builtin.import_tasks:
file: tasks/homebrew.yml
tags: ["homebrew"]
when: install_homebrew
- name: Include hostname configuration.
ansible.builtin.import_tasks:
file: tasks/hostname.yml
tags: ["hostname"]
- name: Include nix packages task configuration.
ansible.builtin.import_tasks:
file: tasks/nix.yml
tags: ["nix"]
when: install_nix
- name: Include snap packages task configuration.
ansible.builtin.import_tasks:
file: tasks/snap.yml
tags: ["snap"]
when: install_snap
- name: Include extra-packages task configuration.
ansible.builtin.import_tasks:
file: tasks/extra_packages.yml
tags: ["extra_packages"]
- name: Include sudoers task configuration.
ansible.builtin.import_tasks:
file: tasks/sudoers.yml
when: configure_sudoers
tags: ["sudoers"]
- name: Include tmux task configuration.
ansible.builtin.import_tasks:
file: tasks/tmux.yml
when: configure_tmux
tags: ["tmux"]
- name: Include zsh task configuration.
ansible.builtin.import_tasks:
file: tasks/zsh.yml
when: configure_zsh
tags: ["zsh"]
- name: Include user script task configuration.
ansible.builtin.import_tasks:
file: tasks/user_script.yml
when: execute_script
tags: ["script"]