diff --git a/coreos-config/runner-pre.yaml b/coreos-config/runner-pre.yaml new file mode 100644 index 0000000..23d8253 --- /dev/null +++ b/coreos-config/runner-pre.yaml @@ -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