Move to new ansible_facts format

This commit is contained in:
uumas
2026-03-11 22:15:19 +02:00
parent ad5e1cbcc0
commit 59cb9da0a4
3 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@
- name: Add ssh key to authorized_keys
ansible.posix.authorized_key:
user: "{{ hostvars[target.host].ansible_user_id }}"
user: "{{ hostvars[target.host].ansible_facts.user_id }}"
key: >-
{{
_borgmatic_key.public_key + ' ' + _borgmatic_key.comment
@@ -22,7 +22,7 @@
- name: Create backup directories
ansible.builtin.file:
path: "{{ hostvars[target.host].ansible_user_dir }}/{{ item }}/{{ ansible_fqdn }}"
path: "{{ hostvars[target.host].ansible_facts.user_dir }}/{{ item }}/{{ ansible_facts.fqdn }}"
state: directory
mode: "0700"
loop: "{{ target.directories }}"