fix: jinja2 syntax
This commit is contained in:
@@ -17,5 +17,5 @@
|
|||||||
user: "{{ ansible_user_id }}"
|
user: "{{ ansible_user_id }}"
|
||||||
exclusive: false
|
exclusive: false
|
||||||
state: present
|
state: present
|
||||||
key: "{{ lookup('file', '{{ ssh_key_path }}') }}"
|
key: "{{ lookup('file', ssh_key_path) }}"
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
user: "{{ ansible_user_id }}"
|
user: "{{ ansible_user_id }}"
|
||||||
exclusive: false
|
exclusive: false
|
||||||
state: present
|
state: present
|
||||||
key: "{{ lookup('file', '{{ ssh_key_path }}') }}"
|
key: "{{ lookup('file', ssh_key_path) }}"
|
||||||
comment: "{{ (ssh_key_comment | length > 0) | ternary(ssh_key_comment, omit) }}"
|
comment: "{{ (ssh_key_comment | length > 0) | ternary(ssh_key_comment, omit) }}"
|
||||||
|
|
||||||
- name: Update sshd config
|
- name: Update sshd config
|
||||||
|
|||||||
Reference in New Issue
Block a user