blob: 0f615506cf585944e6b6d6c7f72ae274dc8f72b4 (
plain) (
tree)
|
|
# workstation ~~ roles/workstation/tasks/main.yml
# init workstation
---
- name: include distribution specific task
include_tasks: "_{{ ansible_distribution | lower }}.yml"
ignore_errors: true
- name: generate doas configuration
lineinfile:
path: /etc/doas.conf
regexp: "^permit persist keepenv {{ _workstation_env_user }} as root"
line: "permit persist keepenv {{ _workstation_env_user }} as root"
owner: root
mode: 0644
create: true
- name: start and enable pcscd service
service:
name: pcscd
state: started
enabled: true
- name: check sudo binary path
shell: which sudo
register: result
failed_when: result.rc | string not in "02"
- name: uninstall sudo binary
package:
name: sudo
state: absent
when: result.rc == 0
register: sudo
ignore_errors: true
|