Initial commit
This commit is contained in:
12
roles/gekmihesg.openwrt/tasks/package.yml
Normal file
12
roles/gekmihesg.openwrt/tasks/package.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
- name: "check for command {{ item.key }}"
|
||||
command: "which {{ item.key | quote }}"
|
||||
register: _package
|
||||
check_mode: false
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
|
||||
- name: "install {{ item.value }} to provide {{ item.key }}"
|
||||
opkg:
|
||||
name: "{{ item.value }}"
|
||||
when: _package.rc
|
||||
Reference in New Issue
Block a user