ansible/roles/ghost_setup/tasks/main.yaml
Gabriel Augendre 96585b08f3
Some checks are pending
/ run ansible (push) Waiting to run
ghost setup ensure started
2024-10-20 10:59:22 +02:00

14 lines
428 B
YAML

---
- name: Write config files
ansible.builtin.template:
src: templates/ghost-config/{{ ghost_setup_filename }}
dest: /mnt/data/{{ ghost_setup_site }}/config.production.json
mode: "0664"
notify:
- Restart service
- name: Ensure service is started
ansible.builtin.command:
cmd: ghost start
chdir: /mnt/data/{{ ghost_setup_site }}
register: start
changed_when: '"Starting Ghost" in start.stdout'