Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - hosts: xyz
- connection: local
- roles:
- # - common
- # - docker
- tasks:
- - name: install db
- docker_container:
- name: postgresql
- image: "tozd/postgresql:{{ postgresql_version | default('latest') }}"
- restart_policy: always
- ports: 5432:5432
- pull: "{{ docker_pull_image | default('no') }}"
- env:
- PGSQL_ROLE_1_USERNAME: "{{ postgresql_user | default('') }}"
- PGSQL_ROLE_1_PASSWORD: "{{ postgresql_password | default('') }}"
- PGSQL_DB_1_NAME: "{{ postgresql_database | default('') }}"
- PGSQL_DB_1_OWNER: "{{ postgresql_user | default('') }}"
- PGSQL_DB_1_ENCODING: "{{ postgresql_encoding | default('UTF8') }}"
- PGSQL_DB_1_LC_COLLATE: "C"
- PGSQL_DB_1_LC_CTYPE: "C"
- PGSQL_DB_1_TEMPLATE: "template0"
- # volumes: postgresql:/var/lib/postgresql/
- - name: install alfresco
- docker_container:
- name: alfresco
- image: "fjudith/alfresco:{{ alfresco_version | default('latest') }}"
- restart_policy: always
- ports: 8080:8080
- pull: "{{ docker_pull_image | default('no') }}"
- links:
- - postgresql:db
- env:
- DB_HOST: db
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement