Feat: sshkey for deploy and me

This commit is contained in:
Bertrand Benjamin 2019-05-14 15:10:05 +02:00
parent 2aec137660
commit ec0ddc2876
2 changed files with 8 additions and 2 deletions

View File

@ -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 }}"

View File

@ -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