Dynamically include upgrade_check task files

Dynamically include the correct galera_upgrade_check task file based on
the ansible_pkg_mgr variable.

Change-Id: Icf7a2556fc303f8920a85873a6f44d4548b7f459
(cherry picked from commit bc963815ca)
This commit is contained in:
Jimmy McCrory 2017-06-05 14:57:10 -07:00 committed by Jesse Pretorius (odyssey4me)
parent 26d74094a7
commit a8c14f4bc5
1 changed files with 1 additions and 10 deletions

View File

@ -13,18 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- include: galera_upgrade_check_apt.yml
static: no
when:
- ansible_pkg_mgr == 'apt'
- include: galera_upgrade_check_{{ ansible_pkg_mgr }}.yml
tags:
- install-apt
- include: galera_upgrade_check_yum.yml
static: no
when:
- ansible_pkg_mgr == 'yum'
tags:
- install-yum
- include: galera_upgrade_pre.yml