Drone Runner: Prepare Runner via Ansible

This commit is contained in:
Tobias Manske 2023-09-13 05:05:18 +02:00
parent f363448fac
commit a6ee8425d8
Signed by: tobias
GPG Key ID: 9164B527694A0709
2 changed files with 10 additions and 2 deletions

View File

@ -28,7 +28,7 @@ steps:
- echo $${SSH_KEY} | base64 -d > /drone/src/ssh_key
- chmod 600 /drone/src/ssh_key
- chmod 600 /drone/src/vault_pass
- name: Run Ansible
- name: Prepare Runner
image: registry.tobiasmanske.de/ansible-runner:latest
pull: always
environment:
@ -37,6 +37,15 @@ steps:
commands:
- cd coreos-config
- ansible-galaxy install -r requirements.yaml
- ansible-playbook --private-key ../ssh_key --inventory=inventory.yaml runner-pre.yaml
- name: Run Ansible
image: registry.tobiasmanske.de/ansible-runner:latest
pull: always
environment:
ANSIBLE_VAULT_PASSWORD_FILE: "/drone/src/vault_pass"
ANSIBLE_FORCE_COLOR: "true"
commands:
- cd coreos-config
- ansible-playbook --limit ci_apply --private-key ../ssh_key --inventory=inventory.yaml playbook.yaml
- name: Validate Ansible
image: registry.tobiasmanske.de/ansible-runner:latest

View File

@ -12,7 +12,6 @@ all:
network_ipv6_addr: "2a03:4000:65:f3b::1"
wg_addr: 10.1.0.2
thonkpad.ka.chaoswg.org:
ansible_host: 192.168.0.73
ansible_user: core
network_interface: ens3
wg_addr: 10.1.0.3