run as user fixes

This commit is contained in:
Morten Olsen
2024-10-09 12:27:02 +02:00
parent 034994e398
commit f62c1d7d25
16 changed files with 38 additions and 55 deletions

View File

@@ -0,0 +1 @@
install_with_root: true

View File

@@ -1,33 +0,0 @@
---
- name: "Unload vars : {{ context }}"
ansible.builtin.include_vars: ../vars/empty.yml
tags:
- install
- name: "Load vars : {{ context }}"
ansible.builtin.include_vars: "{{ item }}"
tags:
- install
with_first_found:
- files:
- "{{ ansible_distribution }}-{{ ansible_distribution_release }}.yml"
- "{{ ansible_distribution }}.yml"
- "{{ ansible_os_family }}.yml"
- default.yml
paths: ../vars/{{ context }}
skip: true
- name: "Install dependencies : {{ context }}"
tags:
- install
when: desktop_pkgs
ansible.builtin.package:
name: "{{ dev_pkgs }}"
- name: "Install casks : {{ context }}"
tags:
- install
when: dev_casks
community.general.homebrew_cask:
name: "{{ dev_casks }}"
state: installed

View File

@@ -15,6 +15,7 @@
- name: "Install dependencies"
tags:
- install
become: "{{ install_with_root }}"
when: env_develop_pkgs
ansible.builtin.package:
name: "{{ env_develop_pkgs }}"