Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
jijisa
/
porch
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d1f36ba9
authored
Jun 21, 2017
by
Heechul Kim
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
modified for centos6 and 7 compatible
parent
65216dc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
porch/templates/bind_main.j2
porch/templates/bind_main.j2
View file @
d1f36ba9
...
@@ -122,10 +122,27 @@
...
@@ -122,10 +122,27 @@
group: named
group: named
recurse: yes
recurse: yes
- name: Add named to rc.local (CentOS 6)
lineinfile:
name: /etc/rc.local
line: "/usr/sbin/named -u named"
when:
- ansible_distribution == "CentOS"
- ansible_distribution_major_version == "6"
- name: Run named (CentOS 6)
command: /usr/sbin/named -u named
when:
- ansible_distribution == "CentOS"
- ansible_distribution_major_version == "6"
- name: Copy named.service systemd file.
- name: Copy named.service systemd file.
copy:
copy:
src: named.service
src: named.service
dest: /etc/systemd/system/named.service
dest: /etc/systemd/system/named.service
when:
- ansible_distribution == "CentOS"
- ansible_distribution_major_version == "7"
- name: Run named service
- name: Run named service
systemd:
systemd:
...
@@ -133,4 +150,7 @@
...
@@ -133,4 +150,7 @@
daemon-reload: yes
daemon-reload: yes
enabled: yes
enabled: yes
state: started
state: started
when:
- ansible_distribution == "CentOS"
- ansible_distribution_major_version == "7"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment