---
# playbook to install and configure general components of a VOPaaS machine
#

- hosts:
    - comanage-test
    - bbmri-nl
  become_user: root
  become: True

  roles:
    - common
    - auth_mellon
    - php
    - mysql
    - comanage
    - surfconext
    - apache
    - ldap
    - phpldapadmin

---
# playbook to install and configure general components of a VOPaaS machine
#

- hosts:
  - portal
  become_user: root
  become: True

  roles:
    - { role: common,       tags: common       }
    - { role: auth_mellon,  tags: auth_mellon  }
    - { role: php,          tags: php          }
    - { role: apache,       tags: apache       }
    - { role: surfconext,   tags: surfconext   }
    - { role: mysql,        tags: mysql        }
    - { role: comanage,     tags: comanage     }

- hosts:
  - ldap
  become_user: root
  become: True

  roles:
    - { role: ldap, tags: ldap }

- hosts:
  - phpldapadmin
  become_user: root
  become: True

  roles:
    - { role: phpldapadmin, tags: phpldapadmin }

- hosts:
  - ssh-access
  become_user: root
  become: True

  roles:
    - { role: sshd, tags: sshd }

Split playbook in more distinct parts
Split playbook in more distinct parts
