Перенес параметр для файла с паролем vault в конфиг
This commit is contained in:
parent
25dca48b9b
commit
a57b39ec76
7
Makefile
7
Makefile
@ -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)
|
||||
|
||||
|
1
ansible-vault-password-file.dist
Normal file
1
ansible-vault-password-file.dist
Normal file
@ -0,0 +1 @@
|
||||
<vault-password-here>
|
@ -1,2 +1,3 @@
|
||||
[defaults]
|
||||
roles_path = ./ansible/galaxy.roles
|
||||
roles_path = ./ansible/galaxy.roles
|
||||
vault_password_file = ./ansible-vault-password-file
|
||||
|
Loading…
Reference in New Issue
Block a user