fix(common): replace deprecated ansible_ fact references with ansible_facts[]

This commit is contained in:
Tuan-Dat Tran
2026-06-03 02:17:08 +02:00
parent aa8b591afd
commit 956836dc67
6 changed files with 28 additions and 28 deletions

View File

@@ -8,7 +8,7 @@
notify:
- Restart sshd
become: true
when: ansible_user_id != "root"
when: ansible_facts['user_id'] != "root"
- name: Copy root sshd_config
ansible.builtin.template:
@@ -18,7 +18,7 @@
backup: true
notify:
- Restart sshd
when: ansible_user_id == "root"
when: ansible_facts['user_id'] == "root"
- name: Copy pubkey
ansible.builtin.copy: