[+] yml examples

This commit is contained in:
2024-07-22 02:33:26 +03:00
parent ba095ff55c
commit 0ed1516b9f
3 changed files with 37 additions and 0 deletions

18
YML_EXAMPES/basic.yml Normal file
View File

@@ -0,0 +1,18 @@
before-reboot:
Name 1:
- cmd1
- cmd2
- cmd3
Name 2:
- cmd1
- cmd2
- cmd3
after-reboot:
Name 3:
- cmd1
- cmd2
- cmd3
Name 4:
- cmd1
- cmd2
- cmd3

View File

@@ -0,0 +1,6 @@
before-reboot:
Update:
- apt update
- apt upgrade -y
Install basic packets:
- apt install ca-certificates curl git -y

View File

@@ -0,0 +1,13 @@
before-reboot:
Install Docker:
- apt update
- apt install ca-certificates curl
- install -m 0755 -d /etc/apt/keyrings
- curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
- chmod a+r /etc/apt/keyrings/docker.asc
- echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
- apt update
- apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
after-reboot:
Check Docker:
- docker ps