diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-08-19 00:37:38 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-08-19 00:37:38 +0200 |
commit | 0deb066a2c4557d9fd07c982379c8342db6cc53f (patch) | |
tree | e5f7db7ecc13c42d72d599da0c64bec527ecfad2 /dan/openwrt.yml | |
parent | update debian bullseye keyring (diff) |
use shared playbook for openwrt image generation
Diffstat (limited to 'dan/openwrt.yml')
-rw-r--r-- | dan/openwrt.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dan/openwrt.yml b/dan/openwrt.yml new file mode 100644 index 00000000..24ea76ec --- /dev/null +++ b/dan/openwrt.yml @@ -0,0 +1,30 @@ +--- +- name: generate OpenWRT image + hosts: "{{ install_hostname }}" + connection: local + gather_facts: no + + roles: + - role: openwrt/image + post_tasks: + - name: print resulting files + pause: + seconds: 0 + prompt: | + You can find the newly generated files here: + + {% for image in openwrt_output_images %} + {{ image | realpath }} + {% endfor %} + + # - name: copy image to target + # command: "scp '{{ openwrt_output_images[0] }}' '{{ inventory_hostname }}:/tmp/ansible-upgrade.img'" + + # - name: run sysupgrade + # command: "ssh '{{ inventory_hostname }}' sysupgrade -n '/tmp/ansible-upgrade.img'" + # ignore_errors: true + # failed_when: false + # register: sysupgrade_result + + # - debug: + # var: sysupgrade_result.stdout |