-
Notifications
You must be signed in to change notification settings - Fork 0
/
DNS_conf.yml
55 lines (42 loc) · 1.14 KB
/
DNS_conf.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
---
- hosts: Ansible.testt
user: root
tasks:
- name: install updates
yum:
name=*
state=latest
- name: dowload needed packets
yum: name={{ item }} state=installed
with_items:
- bind
- bind-utils
# - name: setup name.conf and add zones
# template: owner=root mode=755
# src=/etc/ansible/Templates/named.conf
# dest=/etc/named.conf
#
# - name: setup dima-local.test.zone
# template: owner=root mode=755
# src=/etc/ansible/Templates/dima-local.test.net.zone.test
# dest=/var/named/dima-local.test.net.zone
#
# - name: setup reserve.dima-local.test.zone
# template: owner=root mode=755
# src=/etc/ansible/Templates/reserve.dima-local.test.net.zone.test
# dest=/var/named/reverse.dima-local.test.net.zone
- name: start DNS server
shell: |
systemctl start named.service
- name: status DNS server
shell: |
systemctl -l status named.service
register: out
- debug: var=out.stdout_lines
- hosts: MasterVD
user: root
tasks:
- name: install updates
yum:
name=*
state=latest