mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-03 04:20:01 +02:00
Merge 3d6c3c1e55 into 11c1718983
This commit is contained in:
commit
ffe8424e68
2 changed files with 21 additions and 39 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
# ansible plugin
|
# ansible plugin
|
||||||
|
|
||||||
The `ansible plugin` adds several aliases for useful [ansible](https://docs.ansible.com/ansible/latest/index.html) commands and [aliases](#aliases).
|
The `ansible plugin` adds several aliases for useful
|
||||||
|
[ansible](https://docs.ansible.com/ansible/latest/index.html) commands and [aliases](#aliases).
|
||||||
|
|
||||||
To use it, add `ansible` to the plugins array of your zshrc file:
|
To use it, add `ansible` to the plugins array of your zshrc file:
|
||||||
|
|
||||||
|
|
@ -10,22 +11,19 @@ plugins=(... ansible)
|
||||||
|
|
||||||
## Aliases
|
## Aliases
|
||||||
|
|
||||||
| Command | Description |
|
| Command | Description |
|
||||||
|:-------------------------------------------|:--------------------------------------------------------------------|
|
| :------------------ | :-------------------------- |
|
||||||
| `ansible-version` / `aver` | Show the version on ansible installed in this host |
|
| `a` | command `ansible` |
|
||||||
| `ansible-role-init <role name>` / `arinit` | Creates the Ansible Role as per Ansible Galaxy standard |
|
| `acon` | command `ansible-console` |
|
||||||
| `a` | command `ansible` |
|
| `aconf` | command `ansible-config` |
|
||||||
| `aconf` | command `ansible-config` |
|
| `adoc` | command `ansible-doc` |
|
||||||
| `acon` | command `ansible-console` |
|
| `agal` | command `ansible-galaxy` |
|
||||||
| `ainv` | command `ansible-inventory` |
|
| `ainv` | command `ansible-inventory` |
|
||||||
| `aplaybook` | command `ansible-playbook` |
|
| `aplb`, `aplaybook` | command `ansible-playbook` |
|
||||||
| `adoc` | command `ansible-doc` |
|
| `apull` | command `ansible-pull` |
|
||||||
| `agal` | command `ansible-galaxy` |
|
| `ates` | command `ansible-test` |
|
||||||
| `apull` | command `ansible-pull` |
|
| `aval` | command `ansible-vault` |
|
||||||
| `aval` | command `ansible-vault` |
|
|
||||||
|
|
||||||
## Maintainer
|
## Maintainer
|
||||||
|
|
||||||
### [Deepankumar](https://github.com/deepan10)
|
### [PascalKont](https://github.com/PascalKont)
|
||||||
|
|
||||||
[https://github.com/deepan10/oh-my-zsh/tree/features/ansible-plugin](https://github.com/deepan10/oh-my-zsh/tree/features/ansible-plugin)
|
|
||||||
|
|
|
||||||
|
|
@ -1,28 +1,12 @@
|
||||||
# Functions
|
|
||||||
function ansible-version(){
|
|
||||||
ansible --version
|
|
||||||
}
|
|
||||||
|
|
||||||
function ansible-role-init(){
|
|
||||||
if ! [ -z $1 ] ; then
|
|
||||||
echo "Ansible Role : $1 Creating...."
|
|
||||||
ansible-galaxy init $1
|
|
||||||
tree $1
|
|
||||||
else
|
|
||||||
echo "Usage : ansible-role-init <role name>"
|
|
||||||
echo "Example : ansible-role-init role1"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Alias
|
# Alias
|
||||||
alias a='ansible '
|
alias a='ansible '
|
||||||
alias aconf='ansible-config '
|
|
||||||
alias acon='ansible-console '
|
alias acon='ansible-console '
|
||||||
alias aver='ansible-version'
|
alias aconf='ansible-config '
|
||||||
alias arinit='ansible-role-init'
|
|
||||||
alias aplaybook='ansible-playbook '
|
|
||||||
alias ainv='ansible-inventory '
|
|
||||||
alias adoc='ansible-doc '
|
alias adoc='ansible-doc '
|
||||||
alias agal='ansible-galaxy '
|
alias agal='ansible-galaxy '
|
||||||
|
alias ainv='ansible-inventory '
|
||||||
|
alias aplaybook='ansible-playbook ' # this long version of the playbook alias is kept for backwards compatibility
|
||||||
|
alias aplb='ansible-playbook ' # cannot use aplay because of collision with 'aplay' command for playing audio files
|
||||||
alias apull='ansible-pull '
|
alias apull='ansible-pull '
|
||||||
alias aval='ansible-vault'
|
alias ates='ansible-test '
|
||||||
|
alias aval='ansible-vault '
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue