summaryrefslogtreecommitdiff
path: root/common/openwrt-deploy.yml
diff options
context:
space:
mode:
Diffstat (limited to 'common/openwrt-deploy.yml')
-rw-r--r--common/openwrt-deploy.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/common/openwrt-deploy.yml b/common/openwrt-deploy.yml
new file mode 100644
index 00000000..eacb243c
--- /dev/null
+++ b/common/openwrt-deploy.yml
@@ -0,0 +1,17 @@
+---
+- name: preparations and sanity checks
+ hosts: "{{ install_hostname }}"
+ connection: local
+ gather_facts: no
+ tasks:
+ - name: check if there is only one output image
+ fail:
+ msg: "the output_images variable must only contain a single image"
+ when:
+ - (output_images | length) != 1
+
+- name: deploy openwrt image
+ hosts: "{{ install_hostname }}"
+ gather_facts: no
+ roles:
+ - role: openwrt/deploy