hello world
This commit is contained in:
@@ -32,11 +32,10 @@ autoinstall:
|
||||
shutdown: reboot
|
||||
late-commands:
|
||||
- curl -m 10 --retry 5 http://23.88.102.139:8000/ping/07bf78a8-67c5-4ffb-834d-e9dc660b162a
|
||||
ansible:
|
||||
install_method: pip
|
||||
pull:
|
||||
url: http://23.88.102.139/gitea/sre/ld-install.git
|
||||
playbook_name: ld-install.yaml
|
||||
- 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
|
||||
- curtin in-target chmod +x /target/etc/systemd/system/hello_world.service
|
||||
- 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
|
||||
- curtin in-target chmod +x /root/hello_world.sh
|
||||
user-data:
|
||||
hostname: ldhost
|
||||
chpasswd:
|
||||
|
||||
11
files/hello_world.service
Normal file
11
files/hello_world.service
Normal 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
4
files/hello_world.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo 'hello world'
|
||||
touch /root/it_worked
|
||||
Reference in New Issue
Block a user