ansible-test

This commit is contained in:
Stephan Reinwald
2025-01-21 11:59:18 +01:00
parent 888d47f5fc
commit 6c1bb268ca
2 changed files with 27 additions and 0 deletions

View File

@@ -32,6 +32,11 @@ 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/raw/branch/main/playbook/ld-install.yaml
playbook_name: ld-install.yaml
user-data:
chpasswd:
expire: false

22
playbook/ld-install.yaml Normal file
View File

@@ -0,0 +1,22 @@
---
- name: ld-install
hosts: localhost
vars:
release: jammy
vars_prompt:
- name: license
prompt: LogoDIDACT LicenseID
private: false
tasks:
- name: Add LD repos
ansible.builtin.apt:
repo: "{{ item }}"
state: present
loop:
- # ld-install sources.list
- #deb [trusted=yes] http://archive.logodidact.com/packages/lic={{ license }}/logodidact/{{ release }} {{ release }} main universe restricted multiverse
- deb [trusted=yes] http://archive.logodidact.com/packages/lic={{ license }}/ubuntu/{{ release }} {{ release }} main universe restricted multiverse
- deb [trusted=yes] http://archive.logodidact.com/packages/lic={{ license }}/ubuntu/{{ release }}-security {{ release }}-security main universe restricted multiverse
- deb [trusted=yes] http://archive.logodidact.com/packages/lic={{ license }}/ubuntu/{{ release }}-updates {{ release }}-updates main universe restricted multiverse
- deb [trusted=yes] http://archive.logodidact.com/packages/lic={{ license }}/puppet/{{ release }} {{ release }} puppet7