blob: 3c54210c02c1ea7b13cd2be21326a985d35338cc (
plain) (
tree)
|
|
# _workstation/env ~~ roles/_workstation/env/tasks/main.yml
# useful env. variables for workstation
---
- name: retrieve BECOME method
stat: path=/usr/bin/doas
register: _workstation_env_become
- name: retrieve host facts
set_fact:
#ansible_become_method: "{{ 'doas' if _workstation_env_become.stat.exists else 'sudo' }}"
ansible_become_method: "su"
ansible_become_user: "{{ _workstation_env_user }}"
|