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

View File

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

View File

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