From 6c1bb268ca87173ea05997912059d9c63616f9ad Mon Sep 17 00:00:00 2001 From: Stephan Reinwald Date: Tue, 21 Jan 2025 11:59:18 +0100 Subject: [PATCH] ansible-test --- autoconfig.yaml | 5 +++++ playbook/ld-install.yaml | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 playbook/ld-install.yaml diff --git a/autoconfig.yaml b/autoconfig.yaml index 08716ad..99f0f74 100644 --- a/autoconfig.yaml +++ b/autoconfig.yaml @@ -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 diff --git a/playbook/ld-install.yaml b/playbook/ld-install.yaml new file mode 100644 index 0000000..89ce905 --- /dev/null +++ b/playbook/ld-install.yaml @@ -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