-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.yml
73 lines (73 loc) · 1.62 KB
/
site.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
---
- name: prepare
hosts: 127.0.0.1
gather_facts: false
connection: local
tasks:
- name: configure git
ansible.builtin.copy:
content: |
[user]
email = [email protected]
name = n0nvme
dest: /home/n0nvme/.gitconfig
mode: 0644
- name: install yay
kewlfft.aur.aur:
name: yay
state: present
use: makepkg
- name: other files
hosts: 127.0.0.1
gather_facts: false
connection: local
tasks:
- name: edit pacman.conf
ansible.builtin.blockinfile:
path: /etc/pacman.conf
block: |
[options]
ParallelDownloads = 5
Color
marker: "# {mark} ANSIBLE MANAGED BLOCK"
become: true
tags:
- preheat
- name: systemd magic
hosts: 127.0.0.1
gather_facts: false
connection: local
roles:
- systemd
- name: reflector-config
hosts: 127.0.0.1
gather_facts: false
connection: local
tags:
- reflector
- preheat
tasks:
- name: install package
ansible.builtin.pacman:
state: present
name:
- reflector
become: true
- name: configure reflector
ansible.builtin.copy:
content: |
--save /etc/pacman.d/mirrorlist
--country Russia,Finland,Netherlands
--protocol https
--sort rate
--latest 10
dest: /etc/xdg/reflector/reflector.conf
mode: 0644
become: true
- name: change user shell to zsh
hosts: 127.0.0.1
become: true
tasks:
- ansible.builtin.user:
name: "{{ ansible_user_id }}"
shell: /usr/bin/zsh