-
Notifications
You must be signed in to change notification settings - Fork 0
/
autoenv.yml
58 lines (47 loc) · 1.48 KB
/
autoenv.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
---
- name: Autoenv Tasks
hosts: localhost
tasks:
- name: Import packages
ansible.builtin.include_tasks: "tasks/packages.yml"
tags: always
- name: Import system settings
ansible.builtin.include_tasks: "tasks/system.yml"
tags: always
- name: Create ~/Development folder structure
ansible.builtin.file:
path: "{{ ansible_user_dir }}/Development/{{ item }}"
state: directory
mode: 0755
loop: ['protiumx']
tags: [dev, core]
- name: Install Dotfiles
ansible.builtin.command: sh ~/.autoenv/dotfiles/install.sh
tags: dotfiles
- name: Set VSCode as default editor
ansible.builtin.shell: |
local exts=("{{ fileExtensions | join(' ') }}")
for ext in $exts; do
duti -s com.microsoft.VSCode $ext all
done
exit 0
tags: settings
- name: Import nvim tasks
ansible.builtin.import_tasks: tasks/nvim.yml
tags: [nvim, settings]
- name: Import ssh tasks
ansible.builtin.import_tasks: tasks/ssh.yml
when: manage_ssh_config
tags: [ssh, core]
- name: Import GitHub tasks
ansible.builtin.import_tasks: tasks/github.yml
tags: github
- name: Install Python packages
ansible.builtin.pip:
executable: "{{ pip }}"
name: "{{ pypi_packages }}"
extra_args: --user
tags: [core, python]
- name: Disable startup sound
shell: sudo nvram SystemAudioVolume=%01
tags: settings