-
Notifications
You must be signed in to change notification settings - Fork 0
/
rui.yml
57 lines (48 loc) · 1.32 KB
/
rui.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
---
- name: Play for rui.hayaworld.home
hosts: rui
remote_user: hayato
gather_facts: true
become: true
vars_files:
- inventories/host_vars/dns/NXDOMAIN.yml
- inventories/host_vars/dns/CNAME.yml
- inventories/host_vars/rui.yml
- inventories/host_vars/networks.yml
handlers:
- name: Restart handler tasks
ansible.builtin.import_tasks:
file: handlers/main.yml
tasks:
- name: Common Settings
ansible.builtin.import_tasks:
file: tasks/all/main.yml
- name: Stop systemd-resolved
ansible.builtin.import_tasks:
file: tasks/rui/stop-systemd-resolved.yml
tags:
- dnsmasq
- name: Setup dnsmask
ansible.builtin.import_tasks:
file: tasks/rui/dnsmasq.yml
tags:
- dnsmasq
- name: Show hosts(5)
ansible.builtin.debug:
msg: "{{ lookup('template', './templates/rui/etc/hosts.j2') }}"
tags:
- debug
- dnsmasq
- dryrun
- name: Setup journalctl
ansible.builtin.import_tasks:
file: tasks/rui/journalctl.yml
- name: Setup rsyslog
ansible.builtin.import_tasks:
file: tasks/rui/rsyslog-rui.yml
tags:
- rsyslog
- dnsmasq
- name: Make Started Services
ansible.builtin.import_tasks:
file: tasks/service_start.yml