Drone Runner: Prepare Runner via Ansible
This commit is contained in:
parent
f363448fac
commit
a6ee8425d8
11
.drone.yml
11
.drone.yml
@ -28,7 +28,7 @@ steps:
|
|||||||
- echo $${SSH_KEY} | base64 -d > /drone/src/ssh_key
|
- echo $${SSH_KEY} | base64 -d > /drone/src/ssh_key
|
||||||
- chmod 600 /drone/src/ssh_key
|
- chmod 600 /drone/src/ssh_key
|
||||||
- chmod 600 /drone/src/vault_pass
|
- chmod 600 /drone/src/vault_pass
|
||||||
- name: Run Ansible
|
- name: Prepare Runner
|
||||||
image: registry.tobiasmanske.de/ansible-runner:latest
|
image: registry.tobiasmanske.de/ansible-runner:latest
|
||||||
pull: always
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
@ -37,6 +37,15 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- cd coreos-config
|
- cd coreos-config
|
||||||
- ansible-galaxy install -r requirements.yaml
|
- 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
|
- ansible-playbook --limit ci_apply --private-key ../ssh_key --inventory=inventory.yaml playbook.yaml
|
||||||
- name: Validate Ansible
|
- name: Validate Ansible
|
||||||
image: registry.tobiasmanske.de/ansible-runner:latest
|
image: registry.tobiasmanske.de/ansible-runner:latest
|
||||||
|
@ -12,7 +12,6 @@ all:
|
|||||||
network_ipv6_addr: "2a03:4000:65:f3b::1"
|
network_ipv6_addr: "2a03:4000:65:f3b::1"
|
||||||
wg_addr: 10.1.0.2
|
wg_addr: 10.1.0.2
|
||||||
thonkpad.ka.chaoswg.org:
|
thonkpad.ka.chaoswg.org:
|
||||||
ansible_host: 192.168.0.73
|
|
||||||
ansible_user: core
|
ansible_user: core
|
||||||
network_interface: ens3
|
network_interface: ens3
|
||||||
wg_addr: 10.1.0.3
|
wg_addr: 10.1.0.3
|
||||||
|
Loading…
Reference in New Issue
Block a user