Add example and drop non-existant extra
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f1abb8cb37
commit
995592a555
20
README.md
20
README.md
@ -12,6 +12,18 @@ Ansible libraries for managing Gandi resources.
|
|||||||
gather_facts: false
|
gather_facts: false
|
||||||
connection: local
|
connection: local
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: Prepare Python dependencies
|
||||||
|
become: true
|
||||||
|
apt:
|
||||||
|
name: python3-pip
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Install dns-lexicon system wide
|
||||||
|
become: true
|
||||||
|
pip:
|
||||||
|
name: dns-lexicon==3.3.19
|
||||||
|
executable: /usr/bin/pip3
|
||||||
|
|
||||||
- name: Create foobar.autonomic.zone
|
- name: Create foobar.autonomic.zone
|
||||||
gandi_dns:
|
gandi_dns:
|
||||||
gandi_rest_token: abc...
|
gandi_rest_token: abc...
|
||||||
@ -32,17 +44,11 @@ Ansible libraries for managing Gandi resources.
|
|||||||
- [dns-lexicon >= 3.3.19](https://pypi.org/project/dns-lexicon/) (if using `gandi_dns` module)
|
- [dns-lexicon >= 3.3.19](https://pypi.org/project/dns-lexicon/) (if using `gandi_dns` module)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ pip install ansible==2.6.9 "dns-lexicon[gandi]==3.3.19"
|
$ pip install ansible==2.6.9 dns-lexicon==3.3.19
|
||||||
```
|
```
|
||||||
|
|
||||||
These should be present on the localhost where you run Ansible.
|
These should be present on the localhost where you run Ansible.
|
||||||
|
|
||||||
You can also get `dns-lexicon` via `apt`.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ apt install -y python3-lexicon
|
|
||||||
```
|
|
||||||
|
|
||||||
## Gandi DNS Setup
|
## Gandi DNS Setup
|
||||||
|
|
||||||
If you want to use the `gandi_dns` module you need to prepare the environment.
|
If you want to use the `gandi_dns` module you need to prepare the environment.
|
||||||
|
Loading…
Reference in New Issue
Block a user