main.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. ---
  2. - name: Dependencies installed
  3. community.general.pkgng:
  4. name: py38-pip,py38-cryptography,py38-pillow,rust,libxslt,libxml2,py38-ldap,yarn,git-tiny,py38-cffi,py38-psycopg2
  5. state: latest
  6. - name: Source folder exists
  7. file:
  8. path: /usr/local/src
  9. owner: root
  10. mode: 0755
  11. state: directory
  12. - name: Tandoor source @ master
  13. git:
  14. repo: "https://github.com/vabene1111/recipes.git"
  15. dest: /usr/local/src/tandoor
  16. update: yes
  17. force: yes
  18. tags:
  19. - update
  20. - name: Tandoor UI built
  21. shell:
  22. cmd: yarn install && yarn build
  23. chdir: /usr/local/src/tandoor/vue
  24. tags:
  25. - update
  26. - name: Tandoor env file installed
  27. template:
  28. src: envrc.j2
  29. dest: /usr/local/src/tandoor/.env
  30. owner: root
  31. mode: 0644
  32. - name: Tandoor requirements up to date
  33. pip:
  34. requirements: /usr/local/src/tandoor/requirements.txt
  35. executable: pip
  36. tags:
  37. - update
  38. - name: Tandoor migrations up to date
  39. command: python3.8 /usr/local/src/tandoor/manage.py migrate
  40. - name: Tandoor static files copied
  41. command: python3.8 /usr/local/src/tandoor/manage.py collectstatic --noinput
  42. - name: Tandoor immortal file installed
  43. template:
  44. src: immortal.yml.j2
  45. dest: /usr/local/etc/immortal/tandoor.yml
  46. owner: root
  47. mode: 0644
  48. notify: Immortal restarted