main.yml 844 B

123456789101112131415161718192021222324252627282930313233343536
  1. ---
  2. - name: Dependencies installed
  3. # We install xmlsec and cairocffi using pkg because python-Levenshtein is tricky to install on FreeBSD
  4. community.general.pkgng:
  5. name: git-tiny,yarn-node18,npm-node18
  6. state: latest
  7. - name: Github SSH key installed
  8. template:
  9. src: sshkey.j2
  10. dest: /root/.ssh/id_ed25519
  11. mode: 0400
  12. - name: Source folder exists
  13. file:
  14. path: /usr/local/src
  15. mode: 0755
  16. state: directory
  17. - name: PorchPals source deployed
  18. git:
  19. repo: "git@github.com:sureapp/porchpals-app.git"
  20. dest: /usr/local/src/porchpals-app
  21. accept_hostkey: yes
  22. update: yes
  23. ignore_errors: true
  24. tags:
  25. - deploy
  26. - name: PorchPals immortal file installed
  27. template:
  28. src: porchpals.yml.j2
  29. dest: /usr/local/etc/immortal/porchpals.yml
  30. owner: root
  31. mode: 0600
  32. notify: Immortal restarted