ansible-test
This commit is contained in:
@@ -32,6 +32,11 @@ 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:
|
||||||
|
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:
|
user-data:
|
||||||
chpasswd:
|
chpasswd:
|
||||||
expire: false
|
expire: false
|
||||||
|
|||||||
22
playbook/ld-install.yaml
Normal file
22
playbook/ld-install.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user