From 12ceb3558be35665984f717c77d39fd7589579e6 Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Sat, 20 Nov 2021 11:14:12 -0500 Subject: [PATCH] Add bootstrap tasks to node up/down playbooks --- playbooks/node-down.yaml | 3 +++ playbooks/node-up.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/playbooks/node-down.yaml b/playbooks/node-down.yaml index 34fe234..84b0910 100644 --- a/playbooks/node-down.yaml +++ b/playbooks/node-down.yaml @@ -2,6 +2,9 @@ - name: Check cluster state hosts: cluster any_errors_fatal: true + pre_tasks: + - name: Configure remot execution environment + ansible.builtin.import_tasks: tasks/meta/bootstrap-remote-env.yaml tasks: - name: Validate user input run_once: true diff --git a/playbooks/node-up.yaml b/playbooks/node-up.yaml index 517960c..e3af147 100644 --- a/playbooks/node-up.yaml +++ b/playbooks/node-up.yaml @@ -5,6 +5,9 @@ - name: skylab_datastore_encryption_password prompt: Enter datastore block decryption password private: true + pre_tasks: + - name: Configure remot execution environment + ansible.builtin.import_tasks: tasks/meta/bootstrap-remote-env.yaml roles: - role: datastore tasks: