fix: fix docker swarm network issue
This commit is contained in:
parent
73e4d7fd19
commit
e054c7e702
7 changed files with 80 additions and 70 deletions
|
|
@ -16,7 +16,7 @@
|
|||
ansible.posix.authorized_key:
|
||||
user: "{{ item.key }}"
|
||||
state: present
|
||||
exclusive: true
|
||||
exclusive: false
|
||||
key: "{{ lookup('file', item.value.ssh_keys.pub) }}"
|
||||
key_options: "{{ 'command=\"' + robo_allowed_commands | join('; ') + '\"' if robo_allowed_commands is defined and item.key == 'robo' else omit }}"
|
||||
|
||||
|
|
@ -27,6 +27,15 @@
|
|||
current_user: "{{ users[user_name] | default(None) }}"
|
||||
when: current_user
|
||||
block:
|
||||
- name: Creates directory
|
||||
run_once: True
|
||||
local_action:
|
||||
module: file
|
||||
path: "{{ user_dir }}/.ssh/credentials"
|
||||
state: directory
|
||||
owner: "{{ user_name }}"
|
||||
group: "{{ user_name }}"
|
||||
|
||||
- name: Save SSH Key in localhost
|
||||
run_once: True
|
||||
local_action:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue