Add dnf support
This patch adds dnf support for CentOS. Implements: blueprint centos-and-dnf Change-Id: I1f92167b9bc4c7eaa9e01505671cd1a29bb2a962
This commit is contained in:
parent
16012fbc55
commit
15f53c2384
@ -24,7 +24,7 @@
|
|||||||
- { path: "/etc/pki/tls/certs", owner: "root", group: "root" }
|
- { path: "/etc/pki/tls/certs", owner: "root", group: "root" }
|
||||||
- { path: "/etc/pki/tls/private", owner: "root", group: "root" }
|
- { path: "/etc/pki/tls/private", owner: "root", group: "root" }
|
||||||
- { path: "/var/log/httpd", mode: "2755" }
|
- { path: "/var/log/httpd", mode: "2755" }
|
||||||
when: ansible_pkg_mgr == 'yum'
|
when: ansible_pkg_mgr in ['yum', 'dnf']
|
||||||
|
|
||||||
- name: Create system links
|
- name: Create system links
|
||||||
file:
|
file:
|
||||||
@ -35,7 +35,7 @@
|
|||||||
- { src: "/etc/pki/tls/certs", dest: "/etc/ssl/certs" }
|
- { src: "/etc/pki/tls/certs", dest: "/etc/ssl/certs" }
|
||||||
- { src: "/etc/pki/tls/private", dest: "/etc/ssl/private" }
|
- { src: "/etc/pki/tls/private", dest: "/etc/ssl/private" }
|
||||||
- { src: "/var/log/httpd", dest: "/var/log/apache2" }
|
- { src: "/var/log/httpd", dest: "/var/log/apache2" }
|
||||||
when: ansible_pkg_mgr == 'yum'
|
when: ansible_pkg_mgr in ['yum', 'dnf']
|
||||||
|
|
||||||
- name: Install distro packages
|
- name: Install distro packages
|
||||||
package:
|
package:
|
||||||
@ -147,7 +147,7 @@
|
|||||||
path: "{{ horizon_bin | dirname }}/bin/python2.7"
|
path: "{{ horizon_bin | dirname }}/bin/python2.7"
|
||||||
state: "absent"
|
state: "absent"
|
||||||
when:
|
when:
|
||||||
- ansible_pkg_mgr == 'yum'
|
- ansible_pkg_mgr in ['yum', 'dnf']
|
||||||
- horizon_get_venv | changed
|
- horizon_get_venv | changed
|
||||||
|
|
||||||
- name: Update virtualenv path
|
- name: Update virtualenv path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user