configure ssh for ansible user
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
7e4be72128
commit
c834d84098
@ -12,6 +12,7 @@
|
|||||||
mode: 0700
|
mode: 0700
|
||||||
with_items:
|
with_items:
|
||||||
- "{{user.name}}"
|
- "{{user.name}}"
|
||||||
|
- ansible
|
||||||
|
|
||||||
- name: copy ssh config for user
|
- name: copy ssh config for user
|
||||||
become: true
|
become: true
|
||||||
@ -25,6 +26,7 @@
|
|||||||
owner: "{{ item }}"
|
owner: "{{ item }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ user.name }}"
|
- "{{ user.name }}"
|
||||||
|
- ansible
|
||||||
- name: ensure root ssh directory exist
|
- name: ensure root ssh directory exist
|
||||||
become: true
|
become: true
|
||||||
file:
|
file:
|
||||||
|
Loading…
Reference in New Issue
Block a user