-
Notifications
You must be signed in to change notification settings - Fork 1
/
deploy_playbook.yaml
28 lines (27 loc) · 1.23 KB
/
deploy_playbook.yaml
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
- name: Set up local development environment
hosts: login
roles:
# Tag each role so that we can select individual roles to run with ansible-playbook --tags
- {role: set_local_paths, tags: set_local_paths}
- {role: install_system_packages, tags: install_system_packages}
- {role: download_dotfile, tags: download_dotfile}
- {role: stow, tags: stow}
- {role: git, tags: git}
- {role: gdb, tags: gdb}
- {role: shell_common, tags: shell_common}
- {role: latex, tags: latex}
- {role: system_python, tags: system_python}
- {role: fonts, tags: fonts}
- {role: zsh, tags: zsh}
- {role: tmux, tags: tmux}
- {role: nvim, tags: nvim}
- {role: miniforge, tags: miniforge}
post_tasks:
- name: Limit access to all files having user info
shell: |
find group_vars -type f -exec chmod 600 {} \; > /dev/null
find group_vars -type d -exec chmod 700 {} \; > /dev/null
find host_vars -type f -exec chmod 600 {} \; > /dev/null
find host_vars -type d -exec chmod 700 {} \; > /dev/null
find {{ dotfile_folder }} -name "*.secret" -type f -exec chmod 600 {} \; > /dev/null
find {{ dotfile_folder }} -name "*.secret" -type d -exec chmod 700 {} \; > /dev/null