diff --git a/README.md b/README.md index 0d464c0..fac57af 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ If you want to configure borgbackup backups, these variables need to be set: - `borgbackup_hostname`: Hostname to prefix the snapshots Optional configuration: -- `borgbackup_ssh_id`: Path to the used ssh id (default: `/home/{{ ansible_user_id }}/.ssh/id_ed25519`) +- `borgbackup_ssh_id`: Path to the used ssh id (default: `{{ ansible_user_dir }}/.ssh/id_ed25519`) Attention: You still need to setup the borgbackup repository manually. diff --git a/defaults/main.yml b/defaults/main.yml index c5bdf3f..946bf47 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,9 +1,9 @@ --- # defaults file for server -borgbackup_ssh_id: "/home/{{ ansible_user_id }}/.ssh/id_ed25519" +borgbackup_ssh_id: "{{ ansible_user_dir }}/.ssh/id_ed25519" -caddy_cachedir: "/home/{{ ansible_user_id }}/.ansbl-caddy-cache" +caddy_cachedir: "{{ ansible_user_dir }}/.ansbl-caddy-cache" telegraf_interval: "300s" telegraf_docker_file: "telegraf-docker.conf" diff --git a/tasks/cronmails.yml b/tasks/cronmails.yml index 5239118..ffff41a 100644 --- a/tasks/cronmails.yml +++ b/tasks/cronmails.yml @@ -9,7 +9,7 @@ - "cronmails-{{ ansible_distribution }}.yml" - "cronmails-{{ (override_os_family is defined) | ternary(override_os_family,ansible_os_family) }}.yml" -# Set crobjob env variables/ settings +# Set cronjob env variables/ settings - name: cronmails - Crontab set path become: yes cron: