Drone CI: Only run on reachable hosts
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tobias Manske 2023-03-13 22:41:36 +01:00
parent ec2683199b
commit 0bdaa53bcd
Signed by: tobias
GPG Key ID: E83C743C1FC2F79A

View File

@ -20,13 +20,13 @@ steps:
pull: always
commands:
- cd coreos-config
- ansible-playbook --private-key /ssh_key --inventory=inventory.yaml playbook.yaml
- ansible-playbook --limit host.nc.chaoswg.org --private-key /ssh_key --inventory=inventory.yaml playbook.yaml
- name: Validate Ansible
image: registry.tobiasmanske.de/ansible-runner:latest
pull: always
commands:
- cd coreos-config
- ansible-playbook --check --private-key /ssh_key --inventory=inventory.yaml playbook.yaml
- ansible-playbook --limit host.nc.chaoswg.org --check --private-key /ssh_key --inventory=inventory.yaml playbook.yaml
- name: Notify Discord
when:
status: