---
# modems
- name: gsm-tester-modems | gobi install apt dependencies
  apt:
    name: gobi-loader
    cache_valid_time: 3600
    update_cache: yes

- name: gsm-tester-modems | gobi create firmware directory
  file: path=/lib/firmware/gobi state=directory

- name: gsm-tester-modems | gobi copy firmwares if available
  copy:
    src: "{{ item.file }}"
    dest: "/lib/firmware/{{ item.file }}"
  with_items:
    - file: gobi/amss.mbn
      checksum: sha256:18d161dc5e9db5e795b1f1026e47d0590b6cc0ed9bef824ac0c4b771b529c364
    - file: gobi/apps.mbn
      checksum: sha256:cd7d9adaccf59f02b3bc8261334ed83c7644fbdbf697055189533467d6c882b2
    - file: gobi/UQCN.mbn
      checksum: sha256:37dfc789f899d0ec4c8ba2c403a1a4bc266c9017c94f2b90912e1b7e978c42e7
  ignore_errors: yes
