aboutsummaryrefslogblamecommitdiffstats
path: root/roles/_workstation/sysconf/tasks/main.yml
blob: 0f3796294b13a5648114fae25756b4a52cc637d5 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                 
                  


   
                                          

                                                          
 


                                   

                                                                         



                





                                      











                              

# 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: sudo
  ignore_errors: true

- name: uninstall sudo binary
  package:
    name: sudo
    state: absent
  when: sudo.rc == 0
  register: sudo
  ignore_errors: true
remember that computers suck.