From 936bbf7ecdef28b09c980cd43a591a9d8badf218 Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Thu, 30 Mar 2023 21:18:30 +0200 Subject: [PATCH] Add ci_apply group --- .drone.yml | 4 ++-- coreos-config/inventory.yaml | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 27c251c..fe21db6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -36,7 +36,7 @@ steps: ANSIBLE_FORCE_COLOR: "true" commands: - cd coreos-config - - ansible-playbook --limit host.nc.chaoswg.org --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 image: registry.tobiasmanske.de/ansible-runner:latest pull: always @@ -45,7 +45,7 @@ steps: ANSIBLE_FORCE_COLOR: "true" commands: - cd coreos-config - - ansible-playbook --limit host.nc.chaoswg.org --check --private-key ../ssh_key --inventory=inventory.yaml playbook.yaml + - ansible-playbook --limit ci_apply --check --private-key ../ssh_key --inventory=inventory.yaml playbook.yaml image_pull_secrets: - registry diff --git a/coreos-config/inventory.yaml b/coreos-config/inventory.yaml index ef2acd9..7518fa2 100644 --- a/coreos-config/inventory.yaml +++ b/coreos-config/inventory.yaml @@ -4,6 +4,9 @@ all: host.nc.chaoswg.org: ansible_user: core network_interface: ens3 + mon1.hel1.chaoswg.org: + ansible_user: core + network_interface: ens3 thonkpad.ka.chaoswg.org: ansible_host: 192.168.0.73 ansible_user: core @@ -16,3 +19,8 @@ all: hosts: host.nc.chaoswg.org: null thonkpad.ka.chaoswg.org: null + mon1.hel1.chaoswg.org: null + ci_apply: + hosts: + host.nc.chaoswg.org: null + mon1.hel1.chaoswg.org: null