Pass package list to Ansible package modules

Ansible no longer squashes loops for the package modules, so packages
are installed individually.

TrivialFix

Change-Id: I2bdc70a35de884e2ca7f3b4bd459d221ec392c36
This commit is contained in:
Mark Goddard
2019-10-25 17:29:29 +01:00
parent e5f5cda76b
commit 9064264701
6 changed files with 15 additions and 21 deletions

View File

@@ -4,10 +4,9 @@
- name: Ensure required packages are installed - name: Ensure required packages are installed
package: package:
name: "{{ item }}" name: "{{ bootstrap_package_dependencies }}"
state: installed state: installed
become: True become: True
with_items: "{{ bootstrap_package_dependencies }}"
- name: Check whether an SSH key exists - name: Check whether an SSH key exists
stat: stat:

View File

@@ -1,7 +1,6 @@
--- ---
- name: Ensure required packages are installed - name: Ensure required packages are installed
yum: yum:
name: "{{ item }}" name: "{{ dev_tools_packages }}"
state: installed state: installed
become: True become: True
with_items: "{{ dev_tools_packages }}"

View File

@@ -1,11 +1,10 @@
--- ---
- name: Ensure required packages are installed - name: Ensure required packages are installed
yum: yum:
name: "{{ item }}" name:
- libselinux-python
state: installed state: installed
become: True become: True
with_items:
- libselinux-python
- name: Ensure SELinux is disabled - name: Ensure SELinux is disabled
selinux: selinux:

View File

@@ -13,10 +13,9 @@
- name: Ensure required packages are installed - name: Ensure required packages are installed
package: package:
name: "{{ item }}" name: "{{ kolla_ansible_package_dependencies }}"
state: installed state: installed
become: True become: True
with_items: "{{ kolla_ansible_package_dependencies }}"
- name: Ensure source code checkout parent directory exists - name: Ensure source code checkout parent directory exists
file: file:

View File

@@ -10,16 +10,15 @@
- name: Ensure required packages are installed - name: Ensure required packages are installed
yum: yum:
name: "{{ item }}" name:
state: installed
become: True
with_items:
- gcc - gcc
- libffi-devel - libffi-devel
- openssl-devel - openssl-devel
- python-devel - python-devel
- python-pip - python-pip
- python-virtualenv - python-virtualenv
state: installed
become: True
- name: Ensure source code checkout path exists - name: Ensure source code checkout path exists
file: file:

View File

@@ -11,13 +11,12 @@
- name: Ensure required packages are installed - name: Ensure required packages are installed
package: package:
name: "{{ item }}" name:
- parted
- xfsprogs
state: installed state: installed
become: True become: True
when: swift_block_devices | length > 0 when: swift_block_devices | length > 0
with_items:
- parted
- xfsprogs
- name: Check the presence of a partition on the Swift block devices - name: Check the presence of a partition on the Swift block devices
become: True become: True