Merge "ansible: replace yum module by package module when possible"

This commit is contained in:
Zuul
2018-08-09 23:24:40 +00:00
committed by Gerrit Code Review
3 changed files with 6 additions and 3 deletions

View File

@@ -11,7 +11,10 @@
- block: - block:
- name: install Octavia amphora image if Red Hat - name: install Octavia amphora image if Red Hat
raw: sudo yum -y install octavia-amphora-image package:
name: octavia-amphora-image
state: present
become: true
- name: set location if Red Hat - name: set location if Red Hat
set_fact: set_fact:
image_filename: "/usr/share/rhosp-director-images/octavia-amphora.qcow2" image_filename: "/usr/share/rhosp-director-images/octavia-amphora.qcow2"

View File

@@ -1,7 +1,7 @@
--- ---
# List of packages that are requred to bootstrap TripleO. # List of packages that are requred to bootstrap TripleO.
# The list is used by `yum` Ansible module, so it takes # The list is used by `package` Ansible module, so it takes
# a comma separated list of packages or (as of 2.0) a list # a comma separated list of packages or (as of 2.0) a list
# of packages. # of packages.
packages_bootstrap: packages_bootstrap:

View File

@@ -1,7 +1,7 @@
--- ---
- name: Deploy required packages to bootstrap TripleO - name: Deploy required packages to bootstrap TripleO
yum: package:
name: "{{ packages_bootstrap }}" name: "{{ packages_bootstrap }}"
become: true become: true