[FIX] Usersettings: Re-allow running this task without sudo capabilities

Previously this task intentionally had no tasks installing any packages.
But git and pip3 are needed by some tasks, so let's try to install, but
don't fail because of missing sudo priviledges.
This commit is contained in:
Jannik Beyerstedt 2022-02-13 20:54:15 +01:00
parent a8285962a9
commit 4715b1dacd

View file

@ -3,6 +3,7 @@
- name: usersettings - Install required tools - name: usersettings - Install required tools
become: yes become: yes
ignore_errors: yes # just fail on systems without sudo access
ansible.builtin.package: ansible.builtin.package:
name: "{{ packages }}" name: "{{ packages }}"
state: present state: present
@ -33,6 +34,7 @@
(override_os_family is defined) | ternary(override_os_family,ansible_os_family) != "Darwin" and (override_os_family is defined) | ternary(override_os_family,ansible_os_family) != "Darwin" and
(override_os_family is defined) | ternary(override_os_family,ansible_os_family) != "FreeBSD" (override_os_family is defined) | ternary(override_os_family,ansible_os_family) != "FreeBSD"
become: yes become: yes
ignore_errors: yes # just fail on systems without sudo access
ansible.builtin.package: ansible.builtin.package:
name: "{{ packages }}" name: "{{ packages }}"
state: present state: present