infrastructure/coreos-config/runner-pre.yaml
Tobias Manske 3091398f40
Some checks failed
continuous-integration/drone/push Build is failing
fixup! fixup! Drone Runner: Prepare Runner via Ansible
2023-09-13 05:38:17 +02:00

20 lines
474 B
YAML

---
- name: Setup CI/CD Runner
hosts: localhost
become: true
become_user: root
tags:
- always
tasks:
- name: Add VPN IPs to /etc/hosts
ansible.builtin.lineinfile:
path: /etc/hosts
regexp: "^{{ item }}\\s"
line: "{{ hostvars[item]['wg_addr'] | mandatory }} {{ item }}"
unsafe_writes: true # Docker does not allow atomic updates here.
state: present
loop: "{{ groups['all'] }}"
...
# vim: ft=yaml.ansible