If you are using GitLab outside of the ILL, then you will need to use HTTPS and not SSH for clone/push/pull operations. SSH will work normally if you are using the VPN.

Commit db810fed authored by eric pellegrini's avatar eric pellegrini

added become for ssh task of cluster-users role

parent b4ac9fd4
---
- block:
- name: create the private key directory
- name: create the .ssh key directory
file:
path: "{{ item.private | dirname }}"
path: "~/.ssh"
state: directory
mode: "700"
when: item.private is defined
loop: "{{ user.identity_files | default([])}}"
- name: copy the private key for passwordless connexion between nodes
copy:
src: "{{ item.private }}"
dest: "{{ item.private | dirname }}"
dest: "~/.ssh/"
mode: "600"
when: item.private is defined
loop: "{{ user.identity_files | default([])}}"
......@@ -20,16 +18,10 @@
authorized_key:
user: "{{ user.name }}"
state: present
key: "{{ lookup('file', item.public) }}"
when: item.public is defined
key: "{{ lookup('file', item.private) }}"
when: item.private is defined
loop: "{{ user.identity_files | default([])}}"
- name: create .ssh directory
file:
path: "~/.ssh"
state: directory
mode: "700"
- name: create the ssh_config template
template:
src: "ssh_config.j2"
......@@ -39,5 +31,6 @@
vars:
identity_files: "{{ users['identity_files'] | default([])}}"
become_user: "{{ user.name }}"
become: True
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment