---

# Setup all of our php-fpm related repositories.

- name: Install repositories
  yum: pkg={{item}} state=present
  with_items:
    - "https://dl.iuscommunity.org/pub/ius/stable/Redhat/7/x86_64/ius-release-1.0-15.ius.el7.noarch.rpm"
  when: distro == "rhel7"

- name: Install repositories
  yum: pkg={{item}} state=present
  ignore_errors: yes
  with_items:
    - "https://centos7.iuscommunity.org/ius-release.rpm"
  when: distro == "centos7"

# Mariadb repository for client
- copy:
    src=mariadb/mariadb.repo
    dest=/etc/yum.repos.d/mariadb.repo

---

# Setup all of our php-fpm related repositories.

- name: Install repositories
  yum: pkg={{item}} state=present
  with_items:
    - "https://rhel7.iuscommunity.org/ius-release.rpm"
  when: distro == "rhel7"

- name: Install repositories
  yum: pkg={{item}} state=present
  ignore_errors: yes
  with_items:
    - "https://centos7.iuscommunity.org/ius-release.rpm"
  when: distro == "centos7"

# Mariadb repository for client
- copy:
    src=mariadb/mariadb.repo
    dest=/etc/yum.repos.d/mariadb.repo

Use the actual RHEL7 repository so it would stay up-to-date
Use the actual RHEL7 repository so it would stay up-to-date
