-
Notifications
You must be signed in to change notification settings - Fork 0
/
mai.yml
67 lines (57 loc) · 1.57 KB
/
mai.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
---
- name: Play for mai.hayaworld.home
hosts: mai
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/mai.yml
- inventories/host_vars/networks.yml
handlers:
- name: Restart handler tasks
ansible.builtin.import_tasks:
file: handlers/main.yml
tasks:
- name: Fixed interface name
ansible.builtin.copy:
src: templates/mai/etc/udev/rules.d/99-nic-ens.rules
dest: /etc/udev/rules.d/99-nic-ens.rules
owner: root
group: root
mode: '0644'
tags:
- system
- 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