summaryrefslogtreecommitdiff
path: root/dan
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-08-19 00:37:38 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-08-19 00:37:38 +0200
commit0deb066a2c4557d9fd07c982379c8342db6cc53f (patch)
treee5f7db7ecc13c42d72d599da0c64bec527ecfad2 /dan
parentupdate debian bullseye keyring (diff)
use shared playbook for openwrt image generation
Diffstat (limited to 'dan')
-rw-r--r--dan/ele-orpheum.yml8
-rw-r--r--dan/ele-router.yml8
-rw-r--r--dan/ele-tub.yml8
-rw-r--r--dan/ele-ups.yml20
-rw-r--r--dan/openwrt.yml (renamed from dan/ele-ap.yml)16
5 files changed, 13 insertions, 47 deletions
diff --git a/dan/ele-orpheum.yml b/dan/ele-orpheum.yml
deleted file mode 100644
index 140d4fef..00000000
--- a/dan/ele-orpheum.yml
+++ /dev/null
@@ -1,8 +0,0 @@
----
-- name: Basic Setup
- hosts: ele-orpheum
- connection: local
- gather_facts: no
-
- roles:
- - role: openwrt/image
diff --git a/dan/ele-router.yml b/dan/ele-router.yml
deleted file mode 100644
index ebb8f8bd..00000000
--- a/dan/ele-router.yml
+++ /dev/null
@@ -1,8 +0,0 @@
----
-- name: Basic Setup
- hosts: ele-router
- connection: local
- gather_facts: no
-
- roles:
- - role: openwrt/image
diff --git a/dan/ele-tub.yml b/dan/ele-tub.yml
deleted file mode 100644
index 01668916..00000000
--- a/dan/ele-tub.yml
+++ /dev/null
@@ -1,8 +0,0 @@
----
-- name: Basic Setup
- hosts: ele-tub
- connection: local
- gather_facts: no
-
- roles:
- - role: openwrt/image
diff --git a/dan/ele-ups.yml b/dan/ele-ups.yml
deleted file mode 100644
index de4efce7..00000000
--- a/dan/ele-ups.yml
+++ /dev/null
@@ -1,20 +0,0 @@
----
-- name: Basic Setup
- hosts: ele-ups
- connection: local
- gather_facts: no
-
- roles:
- - role: openwrt/image
- # post_tasks:
- # - 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
diff --git a/dan/ele-ap.yml b/dan/openwrt.yml
index 1bccdc57..24ea76ec 100644
--- a/dan/ele-ap.yml
+++ b/dan/openwrt.yml
@@ -1,12 +1,22 @@
---
-- name: Basic Setup
- hosts: ele-ap
+- name: generate OpenWRT image
+ hosts: "{{ install_hostname }}"
connection: local
gather_facts: no
roles:
- role: openwrt/image
- # post_tasks:
+ 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'"