diff options
Diffstat (limited to 'dan/ele-ap.yml')
-rw-r--r-- | dan/ele-ap.yml | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/dan/ele-ap.yml b/dan/ele-ap.yml index a64ed8a4..7230dea6 100644 --- a/dan/ele-ap.yml +++ b/dan/ele-ap.yml @@ -1,18 +1,18 @@ --- -- hosts: ele-ap +- name: Basic Setup + hosts: ele-ap connection: local roles: - - role: openwrt/image - delegate_to: localhost + - role: openwrt/image post_tasks: - - name: copy image to target - command: "scp '{{ openwrt_output_images[0] }}' '{{ inventory_hostname }}:/tmp/ansible-upgrade.img'" + - 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 + - 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 + - debug: + var: sysupgrade_result.stdout |