fixed state in Ansible ssh-keys task (again)

This commit is contained in:
Bryan Joshua Pedini 2022-03-16 13:14:59 +01:00
parent 65916dd50f
commit 724f7644aa

View File

@ -8,7 +8,7 @@
ansible.builtin.file: ansible.builtin.file:
path: ~/.ssh/authorized_keys path: ~/.ssh/authorized_keys
mode: 0600 mode: 0600
state: file state: touch
- name: Check if the "bryanpedini@bryanbox.home.bjphoster.cloud" key is present - name: Check if the "bryanpedini@bryanbox.home.bjphoster.cloud" key is present
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: ~/.ssh/authorized_keys path: ~/.ssh/authorized_keys