Compare commits
2 Commits
06c2228bd1
...
68eb12d2fe
Author | SHA1 | Date |
---|---|---|
Gleb Koval | 68eb12d2fe | |
Gleb Koval | 749071c695 |
|
@ -55,6 +55,7 @@ jobs:
|
||||||
else
|
else
|
||||||
export TO_RUN="$(find . -wholename './infra/*-playbook.yaml' -type f)"
|
export TO_RUN="$(find . -wholename './infra/*-playbook.yaml' -type f)"
|
||||||
fi
|
fi
|
||||||
|
export TO_RUN="$( echo -n $TO_RUN | tr ' ' '\n' | sort | tr '\n' ' ' )" # run things in order :)
|
||||||
echo "will run playbooks: $TO_RUN"
|
echo "will run playbooks: $TO_RUN"
|
||||||
echo "to_run=$TO_RUN" >> "$GITHUB_OUTPUT"
|
echo "to_run=$TO_RUN" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
# KovalHome automations
|
||||||
|
|
||||||
|
This repository contains any automations used in deploying *.koval.net services.
|
||||||
|
|
||||||
|
## Infra(structure)
|
||||||
|
|
||||||
|
All 'managed' infrastructure is deployed and provisioned with [Ansible](https://www.ansible.com/).
|
||||||
|
However, some 'unmanaged' (manually managed) resources also exist - primarily everything required for this repository to work (I don't want to make a dependency loop).
|
|
@ -1,29 +0,0 @@
|
||||||
- name: Proxmox test-vm-2
|
|
||||||
hosts: localhost
|
|
||||||
module_defaults:
|
|
||||||
community.general.proxmox_kvm:
|
|
||||||
api_user: "{{ lookup('ansible.builtin.env', 'PROXMOX_TOKEN_ID') | regex_replace('!.*') }}"
|
|
||||||
api_host: "{{ lookup('ansible.builtin.env', 'PROXMOX_HOST' ) }}"
|
|
||||||
api_token_id: "{{ lookup('ansible.builtin.env', 'PROXMOX_TOKEN_ID') | regex_replace('.*!') }}"
|
|
||||||
api_token_secret: "{{ lookup('ansible.builtin.env', 'PROXMOX_TOKEN_SECRET') }}"
|
|
||||||
name: test-vm-2
|
|
||||||
node: pve
|
|
||||||
tasks:
|
|
||||||
- name: Create test-vm-2
|
|
||||||
community.general.proxmox_kvm:
|
|
||||||
tags:
|
|
||||||
- managed
|
|
||||||
- name: Wait for test-vm-2 to exist
|
|
||||||
community.general.proxmox_kvm:
|
|
||||||
state: current
|
|
||||||
retries: 30
|
|
||||||
delay: 10
|
|
||||||
- name: Update test-vm-2
|
|
||||||
community.general.proxmox_kvm:
|
|
||||||
cpu: x86-64-v3
|
|
||||||
memory: 2048
|
|
||||||
cores: 5
|
|
||||||
update: true
|
|
||||||
- name: Start test-vm-2
|
|
||||||
community.general.proxmox_kvm:
|
|
||||||
state: restarted
|
|
Loading…
Reference in New Issue