-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal.yml
34 lines (31 loc) · 838 Bytes
/
local.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
---
- name: Ansible pull setup
hosts: localhost
tasks:
- name: Init my personal setup
block:
- name: Install dependencies
ansible.builtin.apt:
name:
- zsh
- vim
- git
state: present
when: ansible_distribution != 'MacOSX'
- name: Copy zshrc file
ansible.builtin.copy:
src: ./files/zshrc
dest: "~/.zshrc"
mode: "0644"
force: true
- name: Copy vimrc file
ansible.builtin.copy:
src: ./files/vimrc
dest: "~/.vimrc"
mode: "0644"
force: true
- name: Render gitconfig file
ansible.builtin.template:
src: gitconfig.j2
dest: ~/.gitconfig
mode: '0644'