innernet-playbook/deploy.yml

26 lines
586 B
YAML
Raw Normal View History

# SPDX-FileCopyrightText: 2021 Free Software Foundation Europe <https://fsfe.org>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
---
- hosts: all
remote_user: root
tags: [peers]
tasks:
- name: Get innernet-server hostname from inventory groups
set_fact:
# Assuming that we only have one innernet server, we take the first
# occurence
innernet_server: "{{ groups['innernet_server'][0] }}"
run_once: true
2021-12-02 17:43:06 +01:00
- hosts: innernet_server
remote_user: root
roles:
- server
2021-12-02 17:43:06 +01:00
- hosts: innernet_client
remote_user: root
roles:
- client