mirror of https://github.com/kewlfft/ansible-aur
README.md: Simplify setup instructions
It turns out that the best way to deploy a custom module repo is on ~/.ansible/plugins/modules. For one, there is no need to symlink the <module>.py file, and also ansible-doc finds it without having to specify the path to the module via the -M switch.pull/8/head
parent
9636c0b1ea
commit
50ca93f6bf
11
README.md
11
README.md
|
@ -31,16 +31,9 @@ The [aur-ansible-git](https://aur.archlinux.org/packages/ansible-aur-git) packag
|
||||||
Note the module is installed in `/usr/share/ansible/plugins/modules` which is one of the default module library paths.
|
Note the module is installed in `/usr/share/ansible/plugins/modules` which is one of the default module library paths.
|
||||||
|
|
||||||
### Manual installation
|
### Manual installation
|
||||||
1. Clone the *ansible-aur* repository in your playbook custom-module directory:
|
Just clone the *ansible-aur* repository into your user custom-module directory:
|
||||||
```
|
```
|
||||||
mkdir library
|
git clone https://github.com/kewlfft/ansible-aur.git ~/.ansible/plugins/modules/aur
|
||||||
cd library
|
|
||||||
git clone https://github.com/kewlfft/ansible-aur.git
|
|
||||||
```
|
|
||||||
|
|
||||||
2. Link the script `library/ansible-aur/aur.py` to `library/aur.py`:
|
|
||||||
```
|
|
||||||
ln --symbolic ansible-aur/aur.py aur.py
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
Loading…
Reference in New Issue