fixe trailling issue
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
vincent 2021-08-18 18:11:58 +02:00
parent d81fb9153a
commit 85f49c4455

View File

@ -8,7 +8,6 @@
raw: apt-get install python --assume-yes
when: debian.stdout
- name: add local repo to mirrorlist
become: yes
lineinfile:
@ -38,8 +37,6 @@
when: debian.stdout
register: upgrade
- name: Reboot updates to apply
reboot:
reboot_timeout: 3600
@ -76,15 +73,16 @@
become_user: "{{user.name}}"
when: sssd_configure == true
- name: set sudoers right
lineinfile:
dest: '/etc/sudoers.d/{{user.name}}'
regexp: '{{ item.regexp }}'
line: '{{ item.line }}'
state: 'present'
dest: "/etc/sudoers.d/{{user.name}}"
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
state: "present"
create: True
owner: 'root'
group: 'root'
mode: '0440'
owner: "root"
group: "root"
mode: "0440"
validate: 'visudo -cf "%s"'
with_items:
- regexp: '^{{user.name}}\s'
@ -98,7 +96,6 @@
state: "present"
validate: 'visudo -cf "%s"'
- name: Set authorized key taken from file
authorized_key:
user: "{{user.name}}"