You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
886 B
34 lines
886 B
- name: Set up hledger
|
|
hosts: lotus-land-story
|
|
vars_files:
|
|
- vars.yml
|
|
tasks:
|
|
|
|
- name: Create directory for volume mounting
|
|
ansible.builtin.file:
|
|
path: /mnt/lotus-land-story/hledger
|
|
state: directory
|
|
mode: "0755"
|
|
|
|
- name: Run hledger
|
|
community.docker.docker_container:
|
|
state: absent
|
|
restart: true
|
|
name: hledger
|
|
image: dastapov/hledger:1.31
|
|
env:
|
|
HLEDGER_JOURNAL_FILE: /data/all.journal
|
|
HLEDGER_BASE_URL: https://{{ hledger.subdomain }}.{{ domain }}
|
|
HLEDGER_ARGS: --capabilities=view,add,manage
|
|
volumes:
|
|
- /mnt/lotus-land-story/hledger:/data
|
|
restart_policy: unless-stopped
|
|
networks:
|
|
- name: lotus_land_story
|
|
|
|
handlers:
|
|
- name: Import restarts
|
|
ansible.builtin.import_tasks: restarts.yml
|
|
|
|
# vim: ft=yaml.ansible
|