diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-01-06 03:57:19 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-01-06 03:57:19 +0100 |
commit | a9ae696fdb1e882a9be767574204bb845023f515 (patch) | |
tree | 2bb38f9c4743e58214cb9769d9585b072138371f /common/openwrt-deploy.yml | |
parent | ch-alix1d: minor tweaks (diff) |
basic openwrt deploy support
Diffstat (limited to 'common/openwrt-deploy.yml')
-rw-r--r-- | common/openwrt-deploy.yml | 17 |
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 |