From e4f7787565f7e618c0741cf56f7883517556655c Mon Sep 17 00:00:00 2001 From: yqlbu Date: Sun, 24 Apr 2022 13:51:16 +0800 Subject: [PATCH] fix: set vault_enable var in playbook level --- packer-templates/playbooks/custom.yml | 3 +++ packer-templates/playbooks/minio.yml | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packer-templates/playbooks/custom.yml b/packer-templates/playbooks/custom.yml index 05775eed..6a77e711 100644 --- a/packer-templates/playbooks/custom.yml +++ b/packer-templates/playbooks/custom.yml @@ -9,6 +9,9 @@ - ./vars/apt.yml - ./vars/maintenance.yml + vars: + - vault_enable: true + roles: - role: ./roles/apt.ops/set-sources.ops/ vars: diff --git a/packer-templates/playbooks/minio.yml b/packer-templates/playbooks/minio.yml index dddc38a0..d5b1416e 100644 --- a/packer-templates/playbooks/minio.yml +++ b/packer-templates/playbooks/minio.yml @@ -8,7 +8,6 @@ roles: - role: ./roles/minio.ops/ vars: - vault_enable: true remote_server: "http://10.178.0.9:9000" minio_access_key: !vault | $ANSIBLE_VAULT;1.1;AES256