-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.yml
More file actions
26 lines (25 loc) · 854 Bytes
/
setup.yml
File metadata and controls
26 lines (25 loc) · 854 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
- hosts: all
become: false
vars:
instance_owner: "{{ ansible_user }}"
is_ubuntu: ansible_facts['os_family'] == 'Debian' and ansible_facts['distribution'] == 'Ubuntu'
is_mac: ansible_facts['os_family'] == 'Darwin'
is_ubuntu_or_mac: ({{ is_ubuntu }}) or ({{ is_mac }})
shell_config_path: $HOME/.zshrc
pre_tasks:
- name: Check for username
block:
- name: Verify ansible_user is set
fail:
msg: "'ansible_user' not set. Please specify a different username using '-e ansible_user=username'"
when: ansible_user == ''
- name: Display the specified username
debug:
msg: "The specified username is {{ ansible_user }}"
roles:
- role: ohmyzsh
tags: ohmyzsh
- role: homebrew
tags: homebrew
- role: gantsign.golang
tags: golang