-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.yml
78 lines (68 loc) · 1.62 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
- hosts: localhost
connection: local
become: true
pre_tasks:
- name: update package cache
package:
update_cache: yes
tasks:
- name: upgrade distribution
tags: full
package:
upgrade: dist
- name: install packages
package:
state: latest
name:
- htop
- tmux
- vim-nox
- emacs
- sudo
- hplip-gui
- simple-scan
- sbcl
- slime
- make
- fonts-inconsolata
- python3-psutil
- name: copy wallpaper file
copy:
src: files/wallpaper.jpg
dest: /usr/share/backgrounds/ansible-wallpaper.jpg
owner: root
group: root
- name: set wallpaper
become_user: cchooper
dconf:
key: "/org/gnome/desktop/background/picture-uri"
value: "'file:///usr/share/backgrounds/ansible-wallpaper.jpg'"
- name: set wallpaper position
become_user: cchooper
dconf:
key: "/org/gnome/desktop/background/picture-options"
value: "'zoom'"
# - name: copy .bashrc file
# copy:
# src: files/bashrc
# dest: /home/cchooper/.bashrc
# owner: cchooper
# group: cchooper
- name: add ansible user
user:
name: ansible-user
system: yes
- name: add ansible-user to sudoers
copy:
src: files/sudoer_ansible-user
dest: /etc/sudoers.d/ansible-user
owner: root
group: root
mode: 0440
- name: add ansible-pull cron job
cron:
name: ansible auto-provision
user: ansible-user
minute: "*/10"
job: ansible-pull -o -U https://github.com/complexitycollapse/personal-ansible-config.git