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

fixed YAML syntax error in disable_sudo.yml task file

parent c522004b
---
block:
- name: get sudo group from getent
getent:
database: group
key: sudo
- name: disable sudo password
lineinfile:
path: /etc/sudoers
state: present
regexp: '^%sudo'
line: '{{ user.name }} ALL=(ALL) NOPASSWD: ALL'
validate: 'visudo -cf %s'
when: user.name in sudo_group
vars:
sudo_group: "{{ getent_group['sudo'][2].split(',') }}"
when: (user.passwordless_sudo | default(False)) == True
- block:
- name: get sudo group from getent
getent:
database: group
key: sudo
- name: disable sudo password
lineinfile:
path: /etc/sudoers
state: present
regexp: '^%sudo'
line: '{{ user.name }} ALL=(ALL) NOPASSWD: ALL'
validate: 'visudo -cf %s'
when: user.name in sudo_group
vars:
sudo_group: "{{ getent_group['sudo'][2].split(',') }}"
when: (user.passwordless_sudo | default(False)) == True
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