Add dnf support
This patch adds dnf support for CentOS. Implements: blueprint centos-and-dnf Change-Id: Ice2477c5c44ef1e4cd87763032dda931a87ab195
This commit is contained in:
parent
307d879729
commit
5dfd2bf8f9
|
@ -107,7 +107,7 @@
|
|||
path: "{{ designate_bin | dirname }}/bin/python2.7"
|
||||
state: "absent"
|
||||
when:
|
||||
- ansible_pkg_mgr == 'yum'
|
||||
- ansible_pkg_mgr in ['yum', 'dnf']
|
||||
- not designate_developer_mode | bool
|
||||
- designate_get_venv | changed
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
options {
|
||||
{% if ansible_pkg_mgr == 'apt' %}
|
||||
directory "/var/cache/bind";
|
||||
{% elif ansible_pkg_mgr == 'yum' %}
|
||||
{% elif ansible_pkg_mgr in ['yum', 'dnf'] %}
|
||||
directory "/var/named";
|
||||
{% elif ansible_pkg_mgr == 'zypper' %}
|
||||
directory "/var/lib/named";
|
||||
|
@ -41,7 +41,7 @@ options {
|
|||
recursion no;
|
||||
};
|
||||
|
||||
{% if ansible_pkg_mgr == 'yum' %}
|
||||
{% if ansible_pkg_mgr in ['yum', 'dnf'] %}
|
||||
logging {
|
||||
channel default_debug {
|
||||
file "data/named.run";
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
owner: 'root'
|
||||
group: 'named'
|
||||
when:
|
||||
- ansible_pkg_mgr == 'yum'
|
||||
- ansible_pkg_mgr in ['yum', 'dnf']
|
||||
- name: Restart bind9
|
||||
service:
|
||||
name: "{{ bind_service_name }}"
|
||||
|
|
Loading…
Reference in New Issue