diff --git a/.drone.yml b/.drone.yml index a7c720d..b245a87 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/coreos-config/inventory.yaml b/coreos-config/inventory.yaml index c34a7c8..2992dc2 100644 --- a/coreos-config/inventory.yaml +++ b/coreos-config/inventory.yaml @@ -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