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
parent fffeb4bb66
commit 8d5df339dd
1 changed files with 2 additions and 11 deletions

View File

@ -13,19 +13,10 @@
# 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'
tags:
- install-apt
- include: galera_upgrade_check_yum.yml
static: no
when:
- ansible_pkg_mgr == 'yum'
- include: "galera_upgrade_check_{{ ansible_pkg_mgr }}.yml"
tags:
- install-apt
- install-yum
- include: galera_upgrade_pre.yml
static: no