Fix ansible performance issue
An Ansible performance issue has been found when a task that contains iterable variables is included in a task that uses a higher level conditional. This patch breaks the task out into individual tasks to remove the delay. Change-Id: I96bfd4f2972521aff4dec83bf0eff255697f8289
This commit is contained in:
parent
e92944b000
commit
761e18d870
@ -14,16 +14,27 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Create cinder TEMP dirs
|
- name: Create cinder TEMP run dir
|
||||||
file:
|
file:
|
||||||
path: "{{ item.path }}/{{ program_name }}"
|
path: "/var/run/{{ program_name }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ system_user }}"
|
owner: "{{ system_user }}"
|
||||||
group: "{{ system_group }}"
|
group: "{{ system_group }}"
|
||||||
mode: 02755
|
mode: 02755
|
||||||
with_items:
|
tags:
|
||||||
- { path: "/var/run" }
|
- systemd-init
|
||||||
- { path: "/var/lock" }
|
- cinder-init
|
||||||
|
|
||||||
|
- name: Create cinder TEMP lock dir
|
||||||
|
file:
|
||||||
|
path: "/var/lock/{{ program_name }}"
|
||||||
|
state: directory
|
||||||
|
owner: "{{ system_user }}"
|
||||||
|
group: "{{ system_group }}"
|
||||||
|
mode: 02755
|
||||||
|
tags:
|
||||||
|
- systemd-init
|
||||||
|
- cinder-init
|
||||||
|
|
||||||
- name: Create tempfile.d entry
|
- name: Create tempfile.d entry
|
||||||
template:
|
template:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user