fix(common): replace deprecated ansible_ fact references with ansible_facts[]
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user