usage of correct var

This commit is contained in:
2022-11-23 10:17:55 +01:00
parent bbd7be47d6
commit 7b4580ac06

View File

@@ -11,7 +11,7 @@
file:
path: "/opt/backup/bin/backup_remote.bash"
state: link
src: "/{{ ansible_user_id }}/bin/backup_remote.bash"
src: "{{ ansible_user_dir }}/bin/backup_remote.bash"
- name: backup | system setup | copy backup config files
copy:
@@ -20,7 +20,7 @@
- name: backup | system setup | add entries to ssh_config
blockinfile:
dest: "/{{ ansible_user_id }}/.ssh/config"
dest: "{{ ansible_user_dir }}/.ssh/config"
block: "{{ lookup('template', 'ssh_config.j2') }}"
marker: "## {mark} ANSIBLE MANAGED BLOCK FOR backup"
# template: