Update initial_install/roles/freeipa_client/tasks/main.yml
This commit is contained in:
@@ -36,13 +36,11 @@
|
||||
|
||||
- name: Check current sudo alternative
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- update-alternatives
|
||||
- --query
|
||||
- sudo
|
||||
cmd: update-alternatives --query sudo
|
||||
register: sudo_alternative
|
||||
changed_when: false
|
||||
when: ansible_distribution == "Ubuntu"
|
||||
failed_when: false
|
||||
when: ansible_facts['distribution'] == "Ubuntu"
|
||||
|
||||
- name: Switch to classic sudo
|
||||
ansible.builtin.command:
|
||||
|
||||
Reference in New Issue
Block a user