Initial build based on 22.04
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-06-24 23:44:10 +02:00
parent 2c57dbcddc
commit 2bd0f8df0a
9 changed files with 56 additions and 12 deletions
+3
View File
@@ -1,7 +1,10 @@
---
- hosts: all
gather_facts: false
group_vars:
- metacluster.yml
become: true
roles:
- os
- firstboot
- metacluster
@@ -0,0 +1,11 @@
- name: Create folder structure
ansible.builtin.file:
path: "{{ item }}"
state: directory
loop:
- /opt/x
- name: Install ansible-galaxy collection
ansible.builtin.shell:
cmd: "ansible-galaxy collection install {{ item }}"
loop: "{{ dependencies.ansible_galaxy_collections }}"
+2
View File
@@ -0,0 +1,2 @@
- name: XYZ
import_tasks: foo.yml
+3 -3
View File
@@ -2,6 +2,7 @@
ansible.builtin.file:
path: /opt/firstboot
state: directory
- name: Create firstboot script file
ansible.builtin.template:
src: firstboot.j2
@@ -9,11 +10,13 @@
owner: root
group: root
mode: o+x
- name: Create @reboot crontab job
ansible.builtin.cron:
name: firstboot
special_time: reboot
job: "/opt/firstboot/firstboot.sh"
- name: Copy payload folder
ansible.builtin.copy:
src: ansible_payload/
@@ -21,6 +24,3 @@
owner: root
group: root
mode: '0644'
- name: Install ansible-galaxy collection
ansible.builtin.shell:
cmd: ansible-galaxy collection install community.general
+6
View File
@@ -0,0 +1,6 @@
- name: Create folder structure
ansible.builtin.file:
path: "{{ item }}"
state: directory
loop:
- /opt/x
+2
View File
@@ -0,0 +1,2 @@
- name: XYZ
import_tasks: foo.yml
+20
View File
@@ -0,0 +1,20 @@
k3s:
version: v1.24.1+k3s1
components:
harbor:
version:
argocd:
version:
dependencies:
ansible_galaxy_collections:
- community.general
- kubernetes.core
static_binaries:
- binary: yq
url: