1
0

Перенес параметр для файла с паролем vault в конфиг

This commit is contained in:
Anton Vakhrushev 2022-08-11 22:16:24 +03:00
parent 25dca48b9b
commit a57b39ec76
Signed by: av
GPG Key ID: 581F7473F7A21FA2
3 changed files with 4 additions and 7 deletions

View File

@ -27,9 +27,7 @@ endif
edit-vars:
EDITOR=micro \
ansible-vault edit \
--vault-password-file="ansible-vault-password-file" \
ansible/vars/vars.yml
ansible-vault edit ansible/vars/vars.yml
configure:
ANSIBLE_HOST_KEY_CHECKING=$(ANSIBLE_HOST_KEY_CHECKING) \
@ -38,7 +36,6 @@ configure:
$(TAGS_ARGS) \
--inventory="$(INVENTORY)" \
--extra-vars='ansible_python_interpreter=/usr/bin/python3' \
--vault-password-file="ansible-vault-password-file" \
$(PLAYBOOK)
configure-prod:
@ -54,7 +51,6 @@ dry-run:
$(TAGS_ARGS) \
--inventory="$(INVENTORY)" \
--extra-vars='ansible_python_interpreter=/usr/bin/python3' \
--vault-password-file="ansible-vault-password-file" \
--check \
--diff -vvv \
$(PLAYBOOK)
@ -62,7 +58,6 @@ dry-run:
list-tags:
ansible-playbook \
--inventory="$(INVENTORY)" \
--vault-password-file="ansible-vault-password-file" \
--list-tags \
$(PLAYBOOK)

View File

@ -0,0 +1 @@
<vault-password-here>

View File

@ -1,2 +1,3 @@
[defaults]
roles_path = ./ansible/galaxy.roles
vault_password_file = ./ansible-vault-password-file