summaryrefslogtreecommitdiff
path: root/common/openwrt-deploy.yml
blob: 1ef70a5e80db669b895fcac66aad11d9a3946eaa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
- 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
  post_tasks:
  - name: remove host-keys from ssh known-hosts
    local_action: command "{{ (inventory_dir, '../remove-known-host.sh') | path_join | realpath }}" "{{ install_hostname }}"