Update create_user_ssh/check_authorizzed_key.yml

This commit is contained in:
David Lopez 2023-07-27 08:50:58 +00:00
parent 6d6dbf5d23
commit 14cfb6976e
1 changed files with 1 additions and 4 deletions

View File

@ -3,12 +3,9 @@
hosts: "{{ host }}"
gather_facts: yes
vars:
public_key_to_add: "{{ key_to_add }}"
tasks:
- name: Read authorized_keys file
shell: cat ~/.ssh/authorized_keys | grep "{{ public_key_to_add }}"
shell: cat ~/.ssh/authorized_keys | grep "{{ key_to_add }}"
register: authorized_key_output
ignore_errors: yes