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 ea533349 authored by eric pellegrini's avatar eric pellegrini

bug fix when creating private/public key file directory

parent b7476c5a
......@@ -9,8 +9,8 @@
lineinfile:
path: /etc/sudoers
state: present
insertafter: '^%sudo'
line: '{{ user.name }} ALL=(ALL) NOPASSWD: ALL'
insertafter: "^%sudo"
line: "{{ user.name }} ALL=(ALL) NOPASSWD: ALL"
validate: 'visudo -cf %s'
when: user.name in sudo_group
vars:
......
......@@ -2,7 +2,13 @@
- block:
- name: create the .ssh directory
file:
path: "{{ item.identity_file }}"
path: "~/.ssh"
state: directory
mode: "700"
- name: create the private/public key directory
file:
path: "{{ item.identity_file | dirname }}"
state: directory
mode: "700"
when: item.identity_file is defined
......@@ -11,7 +17,7 @@
- name: copy the private key for passwordless connexion between nodes
copy:
src: "{{ item.identity_file }}"
dest: "~/.ssh/"
dest: "{{ item.identity_file | dirname }}"
mode: "600"
when: (item.identity_file is defined) and (item.add_private | default(False) == True)
loop: "{{ user.identity_files | default([])}}"
......
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