-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.yml
78 lines (63 loc) · 1.56 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
---
- hosts: localhost
connection: local
become: yes
tasks:
- name: install packages
package:
name:
- htop
- tmux
- vim-nox
- python3-psutil
- name: copy wallpaper file
copy:
src: files/wallpaper.jpg
dest: /usr/share/backgrounds/ansible-wallpaper.jpg
owner: root
group: root
- name: make install directory
file:
path: /install-temp
state: directory
- name: copy file packages
copy:
src: files/file-pkgs
dest: /install-temp
owner: root
group: root
- name: installer for packages
script: /install-temp/file-pkgs/installer.py
args:
executable: python3
- name: install terraform standalone
unarchive:
src: https://releases.hashicorp.com/terraform/1.1.7/terraform_1.1.7_linux_amd64.zip
dest: /usr/local/bin
remote_src: yes
mode: 0755
owner: root
group: root
- name: set wallpaper
become_user: simo
dconf:
key: "/org/gnome/desktop/background/picture-uri"
value: "'file:///usr/share/backgrounds/ansible-wallpaper.jpg'"
- name: set wallpaper position
become_user: simo
dconf:
key: "/org/gnome/desktop/background/picture-options"
value: "'zoom'"
- name: copy bashrc file
copy:
src: files/bashrc
dest: /home/simo/.bashrc
owner: simo
group: simo
- name: setup passwordless sudo for myself
copy:
src: files/sudoerz
dest: /etc/sudoers.d/sudoerz
owner: root
group: root
mode: 0440