Fix command name
This commit is contained in:
parent
a7e0a2a1bf
commit
10ef4daecc
@ -32,7 +32,7 @@ Ansible uses the [vault](https://docs.ansible.com/ansible/latest/user_guide/vaul
|
|||||||
To get started with enabling this, you should generate a vault password for your self and run the following on your Dokku host.
|
To get started with enabling this, you should generate a vault password for your self and run the following on your Dokku host.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ dokku ansible-playbook:add-vault-password
|
$ dokku ansible-playbook:vault-pass
|
||||||
```
|
```
|
||||||
|
|
||||||
Then you can start to encrypt your passwords on your local machine with the following.
|
Then you can start to encrypt your passwords on your local machine with the following.
|
||||||
|
12
commands
12
commands
@ -1,22 +1,22 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
[[ " help ansible:help " == *" $1 "* ]] || exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
|
[[ " help ansible-playbook:help " == *" $1 "* ]] || exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
|
||||||
|
|
||||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
|
||||||
help | ansible:help)
|
help | ansible-playbook:help)
|
||||||
help_content_func() {
|
help_content_func() {
|
||||||
#shellcheck disable=SC2034
|
#shellcheck disable=SC2034
|
||||||
declare desc="return ansible-playbook plugin help content"
|
declare desc="return ansible-playbook plugin help content"
|
||||||
cat<<help_content
|
cat<<help_content
|
||||||
ansible:vault-pass, Insert new vault password for encrypt/decrypt of passwords
|
ansible-playbook:vault-pass, Insert new vault password for encrypt/decrypt of passwords
|
||||||
help_content
|
help_content
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ $1 = "ansible:help" ]]; then
|
if [[ $1 = "ansible-playbook:help" ]]; then
|
||||||
echo -e 'Usage: dokku ansible:COMMAND'
|
echo -e 'Usage: dokku ansible-playbook:COMMAND'
|
||||||
echo ''
|
echo ''
|
||||||
echo 'Run ansible playbooks during deployment'
|
echo 'Run ansible playbooks during deployment'
|
||||||
echo ''
|
echo ''
|
||||||
@ -26,7 +26,7 @@ help_content
|
|||||||
help_content_func
|
help_content_func
|
||||||
else
|
else
|
||||||
cat<<help_desc
|
cat<<help_desc
|
||||||
ansible, Run ansible playbooks during deployment
|
ansible-playbook, Run ansible playbooks during deployment
|
||||||
help_desc
|
help_desc
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user