-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathlocal.yml
More file actions
58 lines (50 loc) · 1.23 KB
/
local.yml
File metadata and controls
58 lines (50 loc) · 1.23 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
- hosts: localhost
connection: local
become: true
tasks:
- name: install packages
package:
name:
- htop
- tmux
- vim-nox
- name: copy wallpaper file
copy:
src: files/wallpaper.png
dest: /usr/share/backgrounds/ansible-wallpaper.png
owner: root
group: root
- name: set wallpaper
become_user: jay
dconf:
key: "/org/gnome/desktop/background/picture-uri"
value: "'file:///usr/share/backgrounds/ansible-wallpaper.png'"
- name: set wallpaper position
become_user: jay
dconf:
key: "/org/gnome/desktop/background/picture-options"
value: "'zoom'"
- name: copy .bashrc file
copy:
src: files/bashrc
dest: /home/jay/.bashrc
owner: jay
group: jay
- name: add ansible user
user:
name: velociraptor
system: yes
- name: set up sudo for ansible user
copy:
src: files/sudoer_velociraptor
dest: /etc/sudoers.d/velociraptor
owner: root
group: root
mode: 0440
- name: add ansible-pull cron job
cron:
name: ansible auto-provision
user: velociraptor
minute: "*/10"
job: ansible-pull -o -U https://github.com/jlacroix82/ansible_pull_tutorial.git