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

bug fix in sudoers edition

fixed regression in ssh task file
parent ca1d5aed
......@@ -9,7 +9,7 @@
lineinfile:
path: /etc/sudoers
state: present
regexp: '^%sudo{{ user.name }}'
insertafter: '^%sudo'
line: '{{ user.name }} ALL=(ALL) NOPASSWD: ALL'
validate: 'visudo -cf %s'
when: user.name in sudo_group
......
......@@ -8,7 +8,7 @@
- name: copy the private key for passwordless connexion between nodes
copy:
src: "{{ item.private }}"
src: "{{ item.identity_file }}"
dest: "~/.ssh/"
mode: "600"
when: (item.identity_file is defined) and (item.add_private | default(False) == True)
......@@ -18,7 +18,7 @@
authorized_key:
user: "{{ user.name }}"
state: present
key: "{{ lookup('file', item.private+'.pub') }}"
key: "{{ lookup('file', item.identity_file+'.pub') }}"
when: (item.identity_file is defined) and (item.add_public | 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