Feat: sshkey for deploy and me
This commit is contained in:
parent
2aec137660
commit
ec0ddc2876
@ -89,6 +89,14 @@
|
|||||||
group: "{{ item.group }}"
|
group: "{{ item.group }}"
|
||||||
with_items: "{{ me }}"
|
with_items: "{{ me }}"
|
||||||
|
|
||||||
|
- name: Copy ssh user config
|
||||||
|
template:
|
||||||
|
src: files/dotfiles/sshconfig
|
||||||
|
dest: /home/{{ item.username }}/.ssh/config
|
||||||
|
owner: "{{ item.username }}"
|
||||||
|
group: "{{ item.group }}"
|
||||||
|
with_items: "{{ deploy_users }}"
|
||||||
|
|
||||||
- name: Copy ssh user config
|
- name: Copy ssh user config
|
||||||
template:
|
template:
|
||||||
src: files/dotfiles/sshconfig
|
src: files/dotfiles/sshconfig
|
||||||
@ -104,4 +112,3 @@
|
|||||||
owner: "{{ item.username }}"
|
owner: "{{ item.username }}"
|
||||||
group: "{{ item.group }}"
|
group: "{{ item.group }}"
|
||||||
with_items: "{{ me }}"
|
with_items: "{{ me }}"
|
||||||
|
|
||||||
|
@ -19,4 +19,3 @@
|
|||||||
shell: "{{ prompt_place['stdout'] }}"
|
shell: "{{ prompt_place['stdout'] }}"
|
||||||
state: present
|
state: present
|
||||||
with_items: "{{ me }}"
|
with_items: "{{ me }}"
|
||||||
when: not minimal or not server
|
|
||||||
|
Loading…
Reference in New Issue
Block a user