-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating to allow for multiple config blocks (#4)
* Adjusted meta file and emptied defaults file * Added including a commented name in the ddclient.conf file this is to allow multiple config options in one file. * changed from `-U` to `--upgrade` * Testing adjustment * Trying fixes * More Testing * More crazy testing * More Testing * Totally Changed template * Wild Test * Testing * Trying Changes
- Loading branch information
1 parent
618cf02
commit 0def709
Showing
7 changed files
with
54 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,2 @@ | ||
--- | ||
# ddclient/defaults/main.yml | ||
|
||
#ddclient_conf: | ||
# - "protocol=" | ||
# - "use= | ||
# - "server=" | ||
# - "ssl=" | ||
# - "login=" | ||
# - "password=" | ||
# - "address |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,29 @@ | ||
# {{ ansible_managed }} | ||
pid={{ ddclient_pid_file }} | ||
{% for lines in ddclient_conf %} | ||
{{ lines }} | ||
{% for name in ddclient_conf %} | ||
# {{ name }} | ||
{% if name.protocol is defined %} | ||
protocol={{ name.protocol }} | ||
{% endif -%} | ||
{% if name.use is defined %} | ||
use={{ name.use }} | ||
{% endif -%} | ||
{% if name.server is defined %} | ||
server={{ name.server }} | ||
{% endif -%} | ||
{% if name.ssl is defined %} | ||
ssl={{ name.ssl }} | ||
{% endif -%} | ||
{% if name.zone is defined %} | ||
zone={{ name.zone }} | ||
{% endif %} | ||
{% if name.login is defined %} | ||
login={{ name.login }} | ||
{% endif -%} | ||
{% if name.password is defined %} | ||
password={{ name.password }} | ||
{% endif -%} | ||
{% if name.address is defined %} | ||
{{ name.address }} | ||
{% endif -%} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters