infra/roles/.common/tasks/peering/main.yml

16 lines
282 B
YAML

- name: common-peering-home
file:
path: "/home/peers"
state: directory
- stat:
path: "/home/peers/self"
register: local_peer
- include: setup_local.yml
when: ! local_peer.stat.exists
- name: common-peering-remote
include: setup_peer.yml
loop: "{{ peers }}"