Procházet zdrojové kódy

Use more YAML-like syntax for the dynamic DNS configurations

Related to #681 (Github Pull Request)
pull/681/head
Slavi Pantaleev před 5 roky
rodič
revize
5c5f828405
1 změnil soubory, kde provedl 9 přidání a 1 odebrání
  1. +9
    -1
      docs/configuring-playbook-dynamic-dns.md

+ 9
- 1
docs/configuring-playbook-dynamic-dns.md Zobrazit soubor

@@ -8,12 +8,20 @@ set this up, you'll need to get the username/password from your DNS provider. Fo
google domains, this process is described [here](https://support.google.com/domains/answer/6147083). google domains, this process is described [here](https://support.google.com/domains/answer/6147083).
After you've gotten the proper credentials you can add the following config to your inventory/host_vars/matrix.DOMAIN/vars.yml: After you've gotten the proper credentials you can add the following config to your inventory/host_vars/matrix.DOMAIN/vars.yml:


```
```yaml
matrix_dynamic_dns_enabled: true matrix_dynamic_dns_enabled: true

matrix_dynamic_dns_domain_configurations: | matrix_dynamic_dns_domain_configurations: |
{{ {{
[{'provider': 'domains.google.com', 'protocol': 'dyndn2', 'username': 'XXXXXXXXXXXXXXXX', 'password': 'XXXXXXXXXXXXXXXX', 'domain': matrix_domain}] [{'provider': 'domains.google.com', 'protocol': 'dyndn2', 'username': 'XXXXXXXXXXXXXXXX', 'password': 'XXXXXXXXXXXXXXXX', 'domain': matrix_domain}]
}} }}

matrix_dynamic_dns_domain_configurations:
- provider: domains.google.com
protocol: dyndn2
username: XXXXXXXXXXXXXXXX
password: XXXXXXXXXXXXXXXX
domain: "{{ matrix_domain }}"
``` ```


## Additional Reading ## Additional Reading


Načítá se…
Zrušit
Uložit