Skip to content

Commit 8b06cf7

Browse files
committed
Update ansible role
1 parent f39ea2b commit 8b06cf7

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

ansible/ynab2splitwise/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Role Variables
1313

1414
Required:
1515
- y2s_accounts_configuration: List of accounts and their configuration. See ynab2splitwise documentation for details.
16+
- y2s_config_dir: Where to save the configuration file
1617

1718
With defaults:
1819
- y2s_image_repository: Docker image repository for the ynab2splitwise image, "
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
- name: Create configuration folder
33
file:
4-
path: "{{ config_dir }}"
4+
path: "{{ y2s_config_dir }}"
55
state: directory
66
mode: 0755
77

88
- name: Create configuration file
99
template:
1010
src: config.yml.j2
11-
dest: "{{ config_dir }}/config.yml"
11+
dest: "{{ y2s_config_dir }}/config.yml"
1212
mode: 0644
1313

1414
- name: Configure Cronjob
@@ -19,4 +19,4 @@
1919
day: "{{ y2s_cron_day }}"
2020
month: "{{ y2s_cron_month }}"
2121
weekday: "{{ y2s_cron_weekday }}"
22-
job: "docker run --rm -v {{ config_dir }}/config.yml:/app/config.yml {{ y2s_image_repository }}:{{ y2s_image_tag }}"
22+
job: "docker run --rm -v {{ y2s_config_dir }}/config.yml:/app/config.yml {{ y2s_image_repository }}:{{ y2s_image_tag }}"

0 commit comments

Comments
 (0)