---
- name: Install some packages needed for development
  yum: 
    name: 
      - ruby-devel
      - gcc-c++
      - sqlite-devel
      - ant
    state: present

- name: Install Mailcatcher
  action: command gem install mailcatcher creates=/usr/local/bin/mailcatcher

- name: Install PHP Xdebug extension
  yum: name=php72-php-pecl-xdebug state=present
    
- name: Configure PHP Xdebug
  template: src=xdebug.ini.j2 dest=/etc/opt/remi/php72/php.d/15-xdebug.ini
  notify:
    - restart php72-php-fpm
    
- name: Add hosts file
  lineinfile:
    dest: /etc/hosts
    state: present
    line: '127.0.0.1 dev.support.surfconext.nl engine.dev.support.surfconext.nl mujina-idp.dev.support.surfconext.nl mujina-sp.dev.support.surfconext.nl engine-api.dev.support.surfconext.nl aa.dev.support.surfconext.nl authz.dev.support.surfconext.nl teams.dev.support.surfconext.nl voot.dev.support.surfconext.nl manage.dev.support.surfconext.nl oidc.dev.support.surfconext.nl'

---
- name: Install some packages needed for development
  yum: 
    name: 
      - ruby-devel
      - gcc-c++
      - sqlite-devel
      - ant
      - composer
    state: present

- name: Install Mailcatcher
  action: command gem install mailcatcher creates=/usr/local/bin/mailcatcher

- name: Install PHP Xdebug extension
  yum: name=php72-php-pecl-xdebug state=present
    
- name: Configure PHP Xdebug
  template: src=xdebug.ini.j2 dest=/etc/opt/remi/php72/php.d/15-xdebug.ini
  notify:
    - restart php72-php-fpm
    
- name: Add hosts file
  lineinfile:
    dest: /etc/hosts
    state: present
    line: '127.0.0.1 dev.support.surfconext.nl engine.dev.support.surfconext.nl mujina-idp.dev.support.surfconext.nl mujina-sp.dev.support.surfconext.nl engine-api.dev.support.surfconext.nl aa.dev.support.surfconext.nl authz.dev.support.surfconext.nl teams.dev.support.surfconext.nl voot.dev.support.surfconext.nl manage.dev.support.surfconext.nl oidc.dev.support.surfconext.nl'

Add composer to Ansible for installation
Add composer to Ansible for installation

This is needed because this is removed from Deploy to
be always installed.
