Skip to content
Snippets Groups Projects
Verified Commit 71cd6fff authored by Florian Pritz's avatar Florian Pritz
Browse files

Consolidate installation playbook


Hostnames are now set in host_vars and the same playbook is used for
all hosts. If one host needs to be reinstalled the playbook can be run
with "--limit $hostname".

Signed-off-by: default avatarFlorian Pritz <bluewind@xinu.at>
parent 61ac2a66
No related branches found
No related tags found
No related merge requests found
---
hostname: "apollo"
ipv4_address: "138.201.81.199"
ipv4_netmask: "/32"
ipv6_address: "2a01:4f8:172:1d86::1"
......
---
hostname: "orion"
ipv4_address: "88.198.91.70"
ipv4_netmask: "/32"
ipv6_address: "2a01:4f8:160:6087::1"
......
---
hostname: "soyuz"
ipv4_address: "138.201.206.85"
ipv4_netmask: "/32"
ipv6_address: "2a01:4f8:173:1654::1"
......
---
hostname: "vostok"
ipv4_address: "5.9.158.171"
ipv4_netmask: "/32"
......
---
# This script is for provisioning a server for first boot.
# Care: It is not idempotent by design.
- name: provision apollo
hosts: apollo
remote_user: root
vars:
- hostname: apollo
roles:
- install_arch
......@@ -3,10 +3,8 @@
# This script is for provisioning a server for first boot.
# Care: It is not idempotent by design.
- name: provision orion
hosts: orion
- name: install_arch
hosts: all
remote_user: root
vars:
- hostname: orion
roles:
- install_arch
---
# This script is for provisioning a server for first boot.
# Care: It is not idempotent by design.
- name: provision soyuz
hosts: soyuz
remote_user: root
vars:
- hostname: soyuz
roles:
- install_arch
---
# This script is for provisioning a server for first boot.
# Care: It is not idempotent by design.
- name: provision vostok
hosts: vostok
remote_user: root
vars:
- hostname: vostok
roles:
- install_arch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment