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: I47dd008bc3d24cb69c429a4f0fd373a7f9499147
This commit is contained in:
Mike Carden 2016-08-02 14:53:23 +10:00
parent ba39ab4eee
commit 7872bd7d5f

View File

@ -13,16 +13,27 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Create nova TEMP dirs
- name: Create nova TEMP run dir
file:
path: "{{ item.path }}/{{ program_name }}"
path: "/var/run/{{ program_name }}"
state: directory
owner: "{{ system_user }}"
group: "{{ system_group }}"
mode: 02755
with_items:
- { path: "/var/run" }
- { path: "/var/lock" }
tags:
- systemd-init
- nova-init
- name: Create nova TEMP lock dir
file:
path: "/var/lock/{{ program_name }}"
state: directory
owner: "{{ system_user }}"
group: "{{ system_group }}"
mode: 02755
tags:
- systemd-init
- nova-init
- name: Create tempfile.d entry
template: