mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-13 05:42:46 +01:00
This commit is contained in:
@@ -9,6 +9,16 @@
|
|||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
name: jd
|
name: jd
|
||||||
password: "{{ jd_password | password_hash('sha512') }}"
|
password: "{{ jd_password | password_hash('sha512') }}"
|
||||||
|
- name: "Ensure sudo binary exist"
|
||||||
|
stat:
|
||||||
|
path: /usr/bin/sudo
|
||||||
|
register: sudo_binary
|
||||||
|
- name: "Install sudo if not present"
|
||||||
|
package:
|
||||||
|
name: sudo
|
||||||
|
state: present
|
||||||
|
when: not sudo_binary.stat.exists
|
||||||
|
|
||||||
- name: Check if group exists
|
- name: Check if group exists
|
||||||
getent:
|
getent:
|
||||||
database: group
|
database: group
|
||||||
|
|||||||
Reference in New Issue
Block a user