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