Parameterize become_user

To allow some flexibility in mixed environments.
This commit is contained in:
Jukka Nousiainen 2021-07-25 00:26:46 +03:00 committed by Andreas B. Mundt
parent 4b4dad5bfe
commit b285427482

View file

@ -182,7 +182,7 @@
repo: 'https://salsa.debian.org/andi/debian-lan-ansible.git' repo: 'https://salsa.debian.org/andi/debian-lan-ansible.git'
dest: "{{ repo_dir }}" dest: "{{ repo_dir }}"
update: no update: no
become_user: "ansible" become_user: "{{ ansible_user }}"
when: not run_in_installer|default(false)|bool when: not run_in_installer|default(false)|bool
- name: start git-repo - name: start git-repo