-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal.yml
44 lines (38 loc) · 819 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
35
36
37
38
39
40
41
42
43
44
---
- hosts: localhost
connection: local
become: true
tasks:
- name: install basic utilities
package:
name:
- htop
- tmux
- cowsay
- cmatrix
- fortune-mod
- vim
- zsh
- name: copy .zshrc file
copy:
src: files/zshrc
dest: /home/alex/.zshrc
owner: alex
group: alex
- name: add ansible user
user:
name: groot
system: yes
- name: set up sudo for ansible user
copy:
src: files/sudoers_groot
dest: /etc/sudoers.d/groot
owner: root
group: root
mode: 0440
- name: add ansible-pull cron job
cron:
name: ansible auto-provision
user: groot
minute: "*/10"
job: ansible-pull -o -U https://github.com/solidsniper/dotfiles_ansible.git"