20251215T225903CET
This commit is contained in:
32
user-data
Normal file
32
user-data
Normal file
@@ -0,0 +1,32 @@
|
||||
#cloud-config
|
||||
users:
|
||||
- name: ghost
|
||||
gecos: ghost
|
||||
primary_group: ghost
|
||||
groups: [users, sudo]
|
||||
shell: /bin/bash
|
||||
sudo: "ALL=(ALL) NOPASSWD:ALL"
|
||||
ssh_authorized_keys:
|
||||
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHpi1yQ9KZWw6dIiYMkWdqTCgcP/4/s4wu8GWe3toIrz mail@svdb.co"
|
||||
ssh_pwauth: true
|
||||
|
||||
hostname: debian
|
||||
|
||||
package_reboot_if_required: true
|
||||
package_update: true
|
||||
package_upgrade: true
|
||||
packages:
|
||||
- pwgen
|
||||
- git
|
||||
|
||||
ansible:
|
||||
package_name: ansible-core
|
||||
install_method: distro
|
||||
pull:
|
||||
url: https://sjaakvandenberg:glpat-LNODrGwGu_2_chfIeHhdPW86MQp1OjJscHIK.01.101c0efma@gitlab.com/svdb-it/infra.git
|
||||
playbook_name: provision.yml
|
||||
|
||||
run_cmd:
|
||||
- deluser --remove-all-files linuxuser
|
||||
- usermod --uid 1000 ghost
|
||||
- groupmod --gid 1000 ghost
|
||||
Reference in New Issue
Block a user