Перенес параметр для файла с паролем vault в конфиг
This commit is contained in:
parent
25dca48b9b
commit
a57b39ec76
7
Makefile
7
Makefile
@ -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)
|
||||||
|
|
||||||
|
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]
|
[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