From 12c273f440dd841af11e367a8535e166b88ed893 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Fri, 16 Sep 2022 16:43:45 -0700 Subject: [PATCH] Remove bootstrapping values from setup playbook This will be done in another playbook --- setup-cluster.yml | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/setup-cluster.yml b/setup-cluster.yml index 318fce2..66b8ca3 100644 --- a/setup-cluster.yml +++ b/setup-cluster.yml @@ -61,22 +61,6 @@ # If DNS is broken after dnsmasq, then need to set /etc/resolv.conf to something # pointing to 127.0.0.1 and possibly restart Docker and Nomad - - name: Add values - delegate_to: localhost - run_once: true - block: - - name: Install python-consul - pip: - name: python-consul - extra_args: --index-url https://pypi.org/simple - - - name: Write values - consul_kv: - host: "{{ inventory_hostname }}" - key: "{{ item.key }}" - value: "{{ item.value }}" - loop: "{{ consul_values | default({}) | dict2items }}" - - name: Setup Vault cluster hosts: vault_instances @@ -155,29 +139,6 @@ - unseal_keys_hex is defined - vault_status.json["sealed"] - - name: Bootstrap Vault secrets - delegate_to: localhost - run_once: true - block: - - name: Install hvac - pip: - name: hvac - extra_args: --index-url https://pypi.org/simple - - # TODO: This fails on first run because `root_token` isn't found - # Fails after taht too because the kv/ space has not been created yet either! Oh noes! - # Maybe move data bootstrapping to after the cluster is bootstrapped - - name: Write values - no_log: true - community.hashi_vault.vault_write: - url: "http://{{ inventory_hostname }}:8200" - token: "{{ root_token }}" - path: "kv/data/{{ item.key }}" - data: - data: - "{{ item.value }}" - loop: "{{ hashi_vault_values | default({}) | dict2items }}" - # Not on Ubuntu 20.04 # - name: Install Podman # hosts: nomad_instances