Fix: forgot to remove ssh public_key in ssh task
This commit is contained in:
parent
6014d91475
commit
abcc0f569d
@ -22,16 +22,6 @@
|
||||
tags:
|
||||
- first_deployement
|
||||
|
||||
- name: ssh -- Add public key for deploy user
|
||||
authorized_key:
|
||||
user: "{{ item.username }}"
|
||||
key: "{{ lookup('file', 'sshpubs/' + deploy_public_key) }}"
|
||||
state: present
|
||||
with_items: "{{ deploy_users }}"
|
||||
register: add_identity_key
|
||||
tags:
|
||||
- first_deployement
|
||||
|
||||
- name: ssh -- Disable password login
|
||||
lineinfile:
|
||||
dest: /etc/ssh/sshd_config
|
||||
|
Loading…
Reference in New Issue
Block a user