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