From 15f53c23845ccf39a6113894db5168fc91acbcef Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Wed, 2 Aug 2017 13:51:10 -0500 Subject: [PATCH] Add dnf support This patch adds dnf support for CentOS. Implements: blueprint centos-and-dnf Change-Id: I1f92167b9bc4c7eaa9e01505671cd1a29bb2a962 --- tasks/horizon_install.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/horizon_install.yml b/tasks/horizon_install.yml index ef09b668..a1e6370d 100644 --- a/tasks/horizon_install.yml +++ b/tasks/horizon_install.yml @@ -24,7 +24,7 @@ - { path: "/etc/pki/tls/certs", owner: "root", group: "root" } - { path: "/etc/pki/tls/private", owner: "root", group: "root" } - { path: "/var/log/httpd", mode: "2755" } - when: ansible_pkg_mgr == 'yum' + when: ansible_pkg_mgr in ['yum', 'dnf'] - name: Create system links file: @@ -35,7 +35,7 @@ - { src: "/etc/pki/tls/certs", dest: "/etc/ssl/certs" } - { src: "/etc/pki/tls/private", dest: "/etc/ssl/private" } - { src: "/var/log/httpd", dest: "/var/log/apache2" } - when: ansible_pkg_mgr == 'yum' + when: ansible_pkg_mgr in ['yum', 'dnf'] - name: Install distro packages package: @@ -147,7 +147,7 @@ path: "{{ horizon_bin | dirname }}/bin/python2.7" state: "absent" when: - - ansible_pkg_mgr == 'yum' + - ansible_pkg_mgr in ['yum', 'dnf'] - horizon_get_venv | changed - name: Update virtualenv path