install sudo if not present
This commit is contained in:
parent
6e7e0c439d
commit
01124f11f6
@ -28,6 +28,12 @@
|
|||||||
creates: /home/ansible/.ssh/authorized_keys
|
creates: /home/ansible/.ssh/authorized_keys
|
||||||
|
|
||||||
# Give ansible sudo rights with no password required.
|
# Give ansible sudo rights with no password required.
|
||||||
|
- name: Install sudo if not already installed.
|
||||||
|
# Looking at you LXCs. >.>
|
||||||
|
ansible.builtin.package:
|
||||||
|
name: sudo
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: Add sudo rights with no password for deployment user.
|
- name: Add sudo rights with no password for deployment user.
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/sudoers
|
dest: /etc/sudoers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user