Adding user control, disabling root

This commit is contained in:
Muaz Ahmad 2023-09-05 12:44:05 +05:00
parent a8a1316967
commit bf6422a69e

View file

@ -1,5 +1,14 @@
#cloud-config #cloud-config
# vim: syntax=yaml # vim: syntax=yaml
users:
- name: ${TARGET_USERNAME}
- sudo: ALL=ALL
- lock_passwd: true
- ssh_authorized_keys:
- ${SSH_PUB_KEY}
disable_root: true
packages: packages:
- ufw - ufw
- nginx - nginx