Changeset View
Changeset View
Standalone View
Standalone View
winery-test-environment/grid5000.yml
# https://www.grid5000.fr/w/Docker#Using_docker-cache.grid5000.fr | # https://www.grid5000.fr/w/Docker#Using_docker-cache.grid5000.fr | ||||
- hosts: mon | - hosts: mon | ||||
gather_facts: no | gather_facts: no | ||||
become: true | become: true | ||||
tasks: | tasks: | ||||
- name: Add the user 'debian' | - name: Add the user 'debian' | ||||
user: | user: | ||||
name: debian | name: debian | ||||
group: debian | |||||
- name: Allow 'debian' group to have passwordless sudo | - name: Allow 'debian' group to have passwordless sudo | ||||
lineinfile: | lineinfile: | ||||
dest: /etc/sudoers | dest: /etc/sudoers | ||||
state: present | state: present | ||||
regexp: '^%debian' | regexp: '^%debian' | ||||
line: '%debian ALL=(ALL) NOPASSWD: ALL' | line: '%debian ALL=(ALL) NOPASSWD: ALL' | ||||
validate: visudo -cf %s | validate: visudo -cf %s | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |