Skip to content

Commit

Permalink
Update enablerepo functionality to work better with Ansible 2.7.0 (#1038
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontalvo3 authored Oct 15, 2018
1 parent 1515f53 commit 7d1472e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/roles/database/tasks/setup-RedHat.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
---
- name: Ensure MySQL packages are installed.
yum: "name={{ item }} state=installed enablerepo={{ mysql_enablerepo }}"
with_items: "{{ mysql_packages }}"
yum:
name: "{{ mysql_packages }}"
state: present
enablerepo: "{{ mysql_enablerepo | default(omit, true) }}"
register: rh_mysql_install_packages

- name: Ensure MySQL Python libraries are installed.
yum: "name=MySQL-python state=installed enablerepo={{ mysql_enablerepo }}"
yum:
name: MySQL-python
state: present
enablerepo: "{{ mysql_enablerepo | default(omit, true) }}"

0 comments on commit 7d1472e

Please sign in to comment.