Add dnf support

This patch adds dnf support for CentOS.

Implements: blueprint centos-and-dnf
Change-Id: Ice2477c5c44ef1e4cd87763032dda931a87ab195
This commit is contained in:
Major Hayden 2017-08-02 14:00:33 -05:00
parent 307d879729
commit 5dfd2bf8f9
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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";

View File

@ -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 }}"