25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cewe_fotobuch.yaml 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. ---
  2. - name: cewe fotobuch installation user
  3. user:
  4. name: cewe-fotobuch-setup
  5. system: yes
  6. shell: /usr/bin/fish
  7. home: /opt/cewe-fotobuch
  8. - name: download cewe fotobuch archive
  9. get_url:
  10. url: https://dls.photoprintit.com/api/getClient/24441-de_DE/hps/om_seo_goo_x_24441_x_24441-UehoUbeYPPMDm/linux
  11. dest: /opt/cewe-fotobuch/setup_Mein_CEWE_FOTOBUCH.tgz
  12. checksum: sha256:c556db58f409c7d3d615d95295edac0263d1490bffd0da2a06e5ddb2517b7ec5
  13. owner: cewe-fotobuch-setup
  14. group: cewe-fotobuch-setup
  15. - name: extract cewe fotobuch archive
  16. unarchive:
  17. src: /opt/cewe-fotobuch/setup_Mein_CEWE_FOTOBUCH.tgz
  18. remote_src: yes
  19. dest: /opt/cewe-fotobuch
  20. owner: cewe-fotobuch-setup
  21. group: cewe-fotobuch-setup
  22. - name: cewe fotobuch temp dir
  23. file:
  24. path: /opt/cewe-fotobuch/tmp
  25. state: directory
  26. owner: cewe-fotobuch-setup
  27. group: cewe-fotobuch-setup
  28. - name: install cewe fotobuch
  29. shell: yes ja | ./install.pl -i /opt/cewe-fotobuch -w /opt/cewe-fotobuch/tmp/ -k -v
  30. args:
  31. chdir: /opt/cewe-fotobuch
  32. creates: /opt/cewe-fotobuch/hps-16523-6.3.4.desktop
  33. become: true
  34. become_user: cewe-fotobuch-setup
  35. become_method: su
  36. - name: find desktop file
  37. find:
  38. paths: /opt/cewe-fotobuch/.local/share/applications/
  39. excludes:
  40. - defaults.list
  41. recurse: yes
  42. file_type: file
  43. register: _find_cewe_fotobuch_shares
  44. - name: copy desktop file
  45. copy:
  46. src: "{{_find_cewe_fotobuch_shares|json_query('files[].path')|first}}"
  47. remote_src: yes
  48. dest: "/usr/share/applications/cewe-fotobuch.desktop"
  49. mode: 0644
  50. - name: find all icon files
  51. find:
  52. paths: /opt/cewe-fotobuch/.local/share/icons/
  53. recurse: yes
  54. file_type: file
  55. register: _find_cewe_fotobuch_shares
  56. - name: copy icon files
  57. copy:
  58. src: "/opt/cewe-fotobuch/.local/share/{{item}}"
  59. remote_src: yes
  60. dest: "/usr/share/{{item}}"
  61. mode: 0644
  62. with_items: "{{_find_cewe_fotobuch_shares|json_query('files[].path')|map('relpath','/opt/cewe-fotobuch/.local/share/')|list}}"