From 7ffb711f0302d1136652cf710d9cbd1cad989690 Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Wed, 1 Sep 2021 01:11:15 +0700 Subject: [PATCH] Split metal group into masters and workers --- metal/hosts.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/metal/hosts.yml b/metal/hosts.yml index c4bdec1a..20309674 100644 --- a/metal/hosts.yml +++ b/metal/hosts.yml @@ -1,9 +1,13 @@ metal: - hosts: - # metal0: {ansible_host: 192.168.1.110, mac: '00:23:24:d1:f3:f0'} - metal1: {ansible_host: 192.168.1.111, mac: '00:23:24:d1:f4:d6'} - metal2: {ansible_host: 192.168.1.112, mac: '00:23:24:e7:04:60'} - metal3: {ansible_host: 192.168.1.113, mac: '00:23:24:d1:f5:69'} + children: + masters: + hosts: + # metal0: {ansible_host: 192.168.1.110, mac: '00:23:24:d1:f3:f0'} + metal1: {ansible_host: 192.168.1.111, mac: '00:23:24:d1:f4:d6'} + metal2: {ansible_host: 192.168.1.112, mac: '00:23:24:e7:04:60'} + workers: + hosts: + metal3: {ansible_host: 192.168.1.113, mac: '00:23:24:d1:f5:69'} vars: ansible_user: root ansible_ssh_private_key_file: ~/.ssh/id_ed25519