defaults:
database_name: mezzanine
database_user: mezzanine
+ secret_key: b495a05c396843b6b47ac944a72c92ed
+ nevercache_key: b5d87bb4e17c483093296fa321056bdc
+ twitter_access_token_key: 80b557a3a8d14cb7a2b91d60398fb8ce
+ twitter_access_token_secret: 1974cf8419114bdd9d4ea3db7a210d90
+ twitter_consumer_key: 1f1c627530b34bb58701ac81ac3fad51
+ twitter_consumer_secret: 36515c2b60ee4ffb9d33d972a7ec350a
+ mezzanine_proj_app: mezzanine_example
+ mezzanine_proj_name: "{{ mezzanine_proj_app }}"
+ locale: en_US.UTF-8
+ database_host: postgres
+ database_port: 5432
+ live_hostname: localhost
+ domains:
+ - localhost
+ - 127.0.0.1
+
services:
# nginx:
# image: nginx:1.11
- # mezzanine:
- # image: ubuntu:xenial
+ mezzanine:
+ image: ubuntu:xenial
+ expose:
+ - "80"
+ ports:
+ - "8000:80"
+ dev_overrides:
+ depends_on:
+ - postgres
memcached:
image: ubuntu:xenial
expose:
postgres:
image: postgres:9.6
expose:
- - "5432"
+ - "{{ database_port }}"
ports:
- - "5432:5432"
+ - "{{ database_port }}:{{ database_port }}"
environment:
POSTGRES_USER: "{{ database_user }}"
POSTGRES_PASSWORD: "{{ database_password }}"
raw: apt-get -y install python
roles:
- memcached
+
+- hosts: mezzanine
+ gather_facts: false
+ pre_tasks:
+ - name: update apt cache
+ raw: apt-get update
+ - name: install python
+ raw: apt-get -y install python
+ roles:
+ - role: mezzanine