Skip to content

Ghost

Auto Documentation

Documentation Generated with Python on 2021-04-03

Default Variables

Tasks

main.yml

# Deploy Docker Images
- name: ensures caddy directory dir exists
  file:
    path: "{{ item }}"
    state: directory
    owner: "{{ main_user}}"
    group: "{{ main_group }}"
  loop:
    - "{{ docker_dir }}"
    - "{{ docker_dir }}/ghost/content"



- name: deploy ghost blog
  docker_container:
    name: ghost_blog
    image: ghost:3-alpine
    restart_policy: always
    networks:
      - name: web
        aliases: ghost
    ports:
      - 8080:2368
    mounts:
      - type: bind
        source: "{{ docker_dir }}/ghost/content/"
        target: /var/lib/ghost/content
    env:
      url: "https://blog.{{ primary_domain }}"
      mail__transport: "SMTP"
      mail__from: "{{ ghost_mail_un }}"
      mail__options__service: "SMTP"
      mail__options__host: "{{ ghost_mail_host }}"
      mail__options__port: "587"
      mail__options__auth__user: "{{ ghost_mail_un }}"
      mail__options__auth__pass: "{{ ghost_mail_pw }}"