Copy rootwrap.d config files in source installs only

The rootwrap.d files are shipped directly from the distro so there
is no need to copy the locally vendored files.

Change-Id: I080a661cf52938c0fc68f635cfe8567c6eac45ec
This commit is contained in:
Mohammed Naser 2018-07-03 14:15:40 -04:00
parent 17c516700f
commit 63a7567701
2 changed files with 12 additions and 12 deletions

View File

@ -92,6 +92,18 @@
- Manage LB
- Restart cinder services
- name: Copy cinder configs
copy:
src: "{{ item }}"
dest: "/etc/cinder/rootwrap.d/"
owner: "root"
group: "root"
with_fileglob:
- rootwrap.d/*
notify:
- Manage LB
- Restart cinder services
- name: Remove python from path first (CentOS, openSUSE)
file:
path: "{{ cinder_bin | dirname }}/bin/python2.7"

View File

@ -43,18 +43,6 @@
- Manage LB
- Restart cinder services
- name: Copy cinder configs
copy:
src: "{{ item }}"
dest: "/etc/cinder/rootwrap.d/"
owner: "root"
group: "root"
with_fileglob:
- rootwrap.d/*
notify:
- Manage LB
- Restart cinder services
- name: Ensure cinder tgt include
lineinfile:
dest: /etc/tgt/targets.conf