From 9338f01b056fe81651656aae90229d56b88c5ebc Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Tue, 8 Jun 2021 18:29:09 +0700 Subject: [PATCH] Run tfstate role on first host --- metal/main.yml | 4 ++++ metal/roles/{etcd => tfstate}/tasks/main.yml | 0 2 files changed, 4 insertions(+) rename metal/roles/{etcd => tfstate}/tasks/main.yml (100%) diff --git a/metal/main.yml b/metal/main.yml index 6078b38a..242b8103 100644 --- a/metal/main.yml +++ b/metal/main.yml @@ -11,3 +11,7 @@ hosts: metal roles: - docker + +- name: Create Terraform state storage + hosts: metal[0] + - tfstate diff --git a/metal/roles/etcd/tasks/main.yml b/metal/roles/tfstate/tasks/main.yml similarity index 100% rename from metal/roles/etcd/tasks/main.yml rename to metal/roles/tfstate/tasks/main.yml