switched to new facts-syntax

This commit is contained in:
2026-01-12 12:31:24 +01:00
parent 037b998219
commit 9fd07d57a4
41 changed files with 111 additions and 109 deletions

View File

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