[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
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@
- name: usersettings - Install required tools
become: yes
ignore_errors: yes # just fail on systems without sudo access
ansible.builtin.package:
name: "{{ packages }}"
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) != "FreeBSD"
become: yes
ignore_errors: yes # just fail on systems without sudo access
ansible.builtin.package:
name: "{{ packages }}"
state: present