-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.yml
More file actions
42 lines (37 loc) · 982 Bytes
/
main.yml
File metadata and controls
42 lines (37 loc) · 982 Bytes
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
---
- name: DotFiles Config
hosts: localhost
connection: local
gather_facts: true
any_errors_fatal: false
pre_tasks:
- name: Detect environment
ansible.builtin.import_tasks: pre_tasks/whoami.yml
tasks:
- name: Set roles
block:
- name: Run roles
ansible.builtin.include_role:
name: "{{ item }}"
with_items:
- docker
- git
- hugo
- nvm
- python
- ssh
- system
- zsh
rescue:
- name: Rescue roles | Update
ansible.builtin.debug:
msg: Playbook encountered an issue while setting role, only update role will be run.
always:
- name: Default roles | Update
ansible.builtin.include_role:
name: "{{ item }}"
with_items:
- update
post_tasks:
- name: Status message
ansible.builtin.import_tasks: post_tasks/end.yml