Merge "Switch to generic package module"

This commit is contained in:
Zuul 2019-12-11 11:04:31 +00:00 committed by Gerrit Code Review
commit 074c1c249a
17 changed files with 29 additions and 29 deletions

View File

@ -8,9 +8,9 @@
controller_host: "{{ groups['controllers'][0] }}" controller_host: "{{ groups['controllers'][0] }}"
tasks: tasks:
- name: Ensure ipmitool is installed - name: Ensure ipmitool is installed
yum: package:
name: ipmitool name: ipmitool
state: installed state: present
become: True become: True
run_once: True run_once: True
delegate_to: "{{ controller_host }}" delegate_to: "{{ controller_host }}"

View File

@ -43,17 +43,17 @@
# Install Dell server admin tools. # Install Dell server admin tools.
- block: - block:
- name: Ensure wget is installed - name: Ensure wget is installed
yum: package:
name: wget name: wget
state: installed state: present
- name: Ensure Dell srvadmin repository is installed - name: Ensure Dell srvadmin repository is installed
shell: "wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash" shell: "wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash"
- name: Ensure Dell srvadmin-idrac7 package is installed - name: Ensure Dell srvadmin-idrac7 package is installed
yum: package:
name: srvadmin-idrac7 name: srvadmin-idrac7
state: installed state: present
# Configure access to the temporary network on a controller. # Configure access to the temporary network on a controller.
- block: - block:

View File

@ -28,7 +28,7 @@
- name: Ensure the python-virtualenv package is installed - name: Ensure the python-virtualenv package is installed
package: package:
name: python-virtualenv name: python-virtualenv
state: installed state: present
become: True become: True
- name: Ensure global virtualenv directory exists - name: Ensure global virtualenv directory exists
@ -78,7 +78,7 @@
- name: Ensure the python-setuptools package is installed - name: Ensure the python-setuptools package is installed
package: package:
name: python-setuptools name: python-setuptools
state: installed state: present
become: True become: True
- name: Ensure pip is installed - name: Ensure pip is installed

View File

@ -22,7 +22,7 @@
- name: Ensure the python-virtualenv package is installed - name: Ensure the python-virtualenv package is installed
package: package:
name: python-virtualenv name: python-virtualenv
state: installed state: present
become: True become: True
- name: Ensure kolla-ansible virtualenv has the latest version of pip installed - name: Ensure kolla-ansible virtualenv has the latest version of pip installed

View File

@ -18,7 +18,7 @@
--connection local --connection local
--become --become
-m yum -m yum
-a "name=libguestfs-tools state=installed"' -a "name=libguestfs-tools state=present"'
- name: Template cloud-init-repo - name: Template cloud-init-repo
copy: copy:
content: | content: |

View File

@ -21,7 +21,7 @@
--connection local --connection local
--become --become
-m yum -m yum
-a "name=libguestfs-tools state=installed"' -a "name=libguestfs-tools state=present"'
- name: Ensure the overcloud host image has bogus name server entries removed - name: Ensure the overcloud host image has bogus name server entries removed
command: > command: >

View File

@ -5,7 +5,7 @@
- name: Ensure required packages are installed - name: Ensure required packages are installed
package: package:
name: "{{ bootstrap_package_dependencies }}" name: "{{ bootstrap_package_dependencies }}"
state: installed state: present
become: True become: True
- name: Check whether an SSH key exists - name: Check whether an SSH key exists

View File

@ -22,7 +22,7 @@
local_action: local_action:
module: package module: package
name: "{{ item }}" name: "{{ item }}"
state: installed state: present
use: "{{ console_allocation_package_manager }}" use: "{{ console_allocation_package_manager }}"
become: True become: True
with_items: "{{ console_allocation_package_dependencies }}" with_items: "{{ console_allocation_package_dependencies }}"

View File

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

View File

@ -1,9 +1,9 @@
--- ---
- name: Ensure required packages are installed - name: Ensure required packages are installed
yum: package:
name: name:
- libselinux-python - libselinux-python
state: installed state: present
become: True become: True
- name: Ensure SELinux is disabled - name: Ensure SELinux is disabled

View File

@ -22,7 +22,7 @@
local_action: local_action:
module: package module: package
name: "{{ item }}" name: "{{ item }}"
state: installed state: present
use: "{{ ip_allocation_package_manager }}" use: "{{ ip_allocation_package_manager }}"
become: True become: True
with_items: "{{ ip_allocation_package_dependencies }}" with_items: "{{ ip_allocation_package_dependencies }}"

View File

@ -3,9 +3,9 @@
include_vars: "{{ ansible_os_family }}.yml" include_vars: "{{ ansible_os_family }}.yml"
- name: Ensure EPEL repo is installed - name: Ensure EPEL repo is installed
yum: package:
name: epel-release name: epel-release
state: installed state: present
become: True become: True
when: when:
- ansible_os_family == 'RedHat' - ansible_os_family == 'RedHat'
@ -14,7 +14,7 @@
- name: Ensure required packages are installed - name: Ensure required packages are installed
package: package:
name: "{{ kolla_ansible_package_dependencies }}" name: "{{ kolla_ansible_package_dependencies }}"
state: installed state: present
become: True become: True
- name: Ensure source code checkout parent directory exists - name: Ensure source code checkout parent directory exists

View File

@ -3,7 +3,7 @@
- name: Ensure required packages are installed - name: Ensure required packages are installed
package: package:
name: parted name: parted
state: installed state: present
become: True become: True
when: ceph_disks | length > 0 when: ceph_disks | length > 0

View File

@ -1,15 +1,15 @@
--- ---
- name: Ensure EPEL repo is installed - name: Ensure EPEL repo is installed
yum: package:
name: epel-release name: epel-release
state: installed state: present
become: True become: True
when: when:
- ansible_os_family == 'RedHat' - ansible_os_family == 'RedHat'
- kolla_install_epel | bool - kolla_install_epel | bool
- name: Ensure required packages are installed - name: Ensure required packages are installed
yum: package:
name: name:
- gcc - gcc
- libffi-devel - libffi-devel
@ -17,7 +17,7 @@
- python-devel - python-devel
- python-pip - python-pip
- python-virtualenv - python-virtualenv
state: installed state: present
become: True become: True
- name: Ensure source code checkout path exists - name: Ensure source code checkout path exists

View File

@ -14,7 +14,7 @@
name: name:
- parted - parted
- xfsprogs - xfsprogs
state: installed state: present
become: True become: True
when: swift_block_devices | length > 0 when: swift_block_devices | length > 0

View File

@ -7,7 +7,7 @@
# any LVM or file system state from them. # any LVM or file system state from them.
- name: Ensure LVM2 is installed - name: Ensure LVM2 is installed
yum: package:
name: lvm2 name: lvm2
state: present state: present
become: True become: True

View File

@ -24,7 +24,7 @@
- name: Yum | Install epel-release (CentOS) - name: Yum | Install epel-release (CentOS)
yum: yum:
name: epel-release name: epel-release
state: installed state: present
become: True become: True
- name: Template | Copy EPEL repo templates (CentOS) - name: Template | Copy EPEL repo templates (CentOS)