Move list of apps to playbook variable.
This commit is contained in:
parent
004919824c
commit
8a821f501d
2 changed files with 4 additions and 3 deletions
|
@ -12,6 +12,9 @@
|
||||||
DNS: "192.168.2.1"
|
DNS: "192.168.2.1"
|
||||||
ddns_domain: "something.ddnss.de"
|
ddns_domain: "something.ddnss.de"
|
||||||
ddns_updkey: "138638.some.key.here.635620"
|
ddns_updkey: "138638.some.key.here.635620"
|
||||||
|
nc_apps:
|
||||||
|
- calendar
|
||||||
|
- notes
|
||||||
backup_opts: "--exclude-caches -e '*/updater-*/' -e '*/preview/*' -e '*/files_trashbin/*'"
|
backup_opts: "--exclude-caches -e '*/updater-*/' -e '*/preview/*' -e '*/files_trashbin/*'"
|
||||||
backup_dirs:
|
backup_dirs:
|
||||||
- "{{ nc_dir }}"
|
- "{{ nc_dir }}"
|
||||||
|
|
|
@ -218,9 +218,7 @@
|
||||||
args:
|
args:
|
||||||
chdir: "{{ nc_dir }}"
|
chdir: "{{ nc_dir }}"
|
||||||
warn: False
|
warn: False
|
||||||
with_items:
|
with_items: "{{ nc_apps }}"
|
||||||
- calendar
|
|
||||||
- notes
|
|
||||||
register: cmd_result
|
register: cmd_result
|
||||||
changed_when: cmd_result.stdout is not search('already installed')
|
changed_when: cmd_result.stdout is not search('already installed')
|
||||||
failed_when: cmd_result.stdout is not search('already installed') and cmd_result.rc != 0
|
failed_when: cmd_result.stdout is not search('already installed') and cmd_result.rc != 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue