main.yml 812 B

12345678910111213141516171819202122232425262728293031323334
  1. ---
  2. - name: Dependencies installed
  3. community.general.pkgng:
  4. name: "npm git-tiny"
  5. state: latest
  6. - name: Source folder exists
  7. file:
  8. path: /usr/local/src
  9. mode: 0755
  10. state: directory
  11. - name: Multi-scrobbler source fetched
  12. shell: git clone https://github.com/FoxxMD/multi-scrobbler.git /usr/local/src/multi-scrobbler
  13. - name: Multi-scrobbler installed
  14. shell:
  15. cmd: npm install
  16. chdir: /usr/local/src/multi-scrobbler
  17. - name: Multi-scrobbler conf file installed
  18. template:
  19. src: config.json.j2
  20. dest: /usr/local/etc/multi-scrobbler/config.json
  21. owner: root
  22. mode: 0644
  23. - name: Multi-scrobbler immortal file installed
  24. template:
  25. src: immortal.yml.j2
  26. dest: /usr/local/etc/immortal/multi-scrobbler.yml
  27. owner: root
  28. mode: 0644
  29. notify: Immortal restarted