hello world

This commit is contained in:
Stephan Reinwald
2025-01-21 14:20:46 +01:00
parent e1af78b86a
commit b33d9f8af0
3 changed files with 19 additions and 5 deletions

View File

@@ -32,11 +32,10 @@ autoinstall:
shutdown: reboot shutdown: reboot
late-commands: late-commands:
- curl -m 10 --retry 5 http://23.88.102.139:8000/ping/07bf78a8-67c5-4ffb-834d-e9dc660b162a - curl -m 10 --retry 5 http://23.88.102.139:8000/ping/07bf78a8-67c5-4ffb-834d-e9dc660b162a
ansible: - curtin in-target curl -o /target/etc/systemd/system/hello_world.service http://23.88.102.139/gitea/sre/ld-install/raw/branch/main/files/hello_world.service
install_method: pip - curtin in-target chmod +x /target/etc/systemd/system/hello_world.service
pull: - curtin in-target curl -o /root/hello_world.sh http://23.88.102.139/gitea/sre/ld-install/raw/branch/main/files/hello_world.sh
url: http://23.88.102.139/gitea/sre/ld-install.git - curtin in-target chmod +x /root/hello_world.sh
playbook_name: ld-install.yaml
user-data: user-data:
hostname: ldhost hostname: ldhost
chpasswd: chpasswd:

11
files/hello_world.service Normal file
View File

@@ -0,0 +1,11 @@
# ld-install service
[Unit]
Description=logoDIDACT 4.0 Installer
After=network.target
[Service]
Type=oneshot
ExecStart=/root/hello_world.sh
[Install]
WantedBy=multi-user.target

4
files/hello_world.sh Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
echo 'hello world'
touch /root/it_worked