fixup! Drone Runner: Prepare Runner via Ansible
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
9971989cfc
commit
12149e26ad
18
coreos-config/runner-pre.yaml
Normal file
18
coreos-config/runner-pre.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
- 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 }}"
|
||||||
|
state: present
|
||||||
|
loop: "{{ groups['all'] }}"
|
||||||
|
|
||||||
|
...
|
||||||
|
# vim: ft=yaml.ansible
|
Loading…
Reference in New Issue
Block a user