---
- hosts: confluence
  become: true
  pre_tasks:
    - yum: name=libselinux-python state=present

  roles:
    - role: galaxyprojectdotorg.postgresql
    - role: williamyeh.oracle-java
    - role: ansible-confluence

  tasks:
    - yum: name=python-psycopg2 state=present
    - name: creating db user '{{ confluence_db_user }}'
      postgresql_user:
        name: "{{ confluence_db_user }}"
        password: "{{ confluence_db_pass }}"
        encrypted: yes
        role_attr_flags: "CREATEROLE,CREATEDB"
      become_user: postgres

    - name: creating db '{{ confluence_db }}'
      postgresql_db:
        name: "{{ confluence_db }}"
        owner: "{{ confluence_db_user }}"
      become_user: postgres

  vars:
    java_version: 8
    java_subversion: 92
    confluence_db: "confluence"
    confluence_db_user: "confluence"
    confluence_db_pass: "confluencepass"

---
- hosts: confluence
  become: true
  pre_tasks:
    - yum: name=libselinux-python state=present

  roles:
    - role: galaxyprojectdotorg.postgresql
    - role: williamyeh.oracle-java
    - role: ansible-role-confluence

  tasks:
    - yum: name=python-psycopg2 state=present
    - name: creating db user '{{ confluence_db_user }}'
      postgresql_user:
        name: "{{ confluence_db_user }}"
        password: "{{ confluence_db_pass }}"
        encrypted: yes
        role_attr_flags: "CREATEROLE,CREATEDB"
      become_user: postgres

    - name: creating db '{{ confluence_db }}'
      postgresql_db:
        name: "{{ confluence_db }}"
        owner: "{{ confluence_db_user }}"
      become_user: postgres

  vars:
    java_version: 8
    java_subversion: 92
    confluence_db: "confluence"
    confluence_db_user: "confluence"
    confluence_db_pass: "confluencepass"

Update role name to reflect repo
Update role name to reflect repo
