main.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. ---
  2. - name: Dependencies installed
  3. community.general.pkgng:
  4. name: py39-pip,py39-cryptography,py39-ldap,py39-pillow,rust,libxslt,libxml2,py39-ldap,yarn,git-tiny,py39-cffi,py39-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: Libraries for ldap linked
  33. file: src=/usr/local/include/lber.h dest=/usr/include/lber.h state=link
  34. - name: Libraries for ldap linked
  35. file: src=/usr/local/include/lber_types.h dest=/usr/include/lber_types.h state=link
  36. - name: Libraries for ldap linked
  37. file: src=/usr/local/include/ldap_cdefs.h dest=/usr/include/ldap_cdefs.h state=link
  38. - name: Libraries for ldap linked
  39. file: src=/usr/local/include/openldap.h dest=/usr/include/openldap.h state=link
  40. - name: Libraries for sasl linked
  41. file: src=/usr/local/include/sasl dest=/usr/include/sasl state=link
  42. - name: Tandoor requirements up to date
  43. pip:
  44. requirements: /usr/local/src/tandoor/requirements.txt
  45. executable: pip
  46. tags:
  47. - update
  48. - name: Tandoor migrations up to date
  49. command: python3.9 /usr/local/src/tandoor/manage.py migrate
  50. - name: Tandoor static files copied
  51. command: python3.9 /usr/local/src/tandoor/manage.py collectstatic --noinput
  52. - name: Tandoor immortal file installed
  53. template:
  54. src: immortal.yml.j2
  55. dest: /usr/local/etc/immortal/tandoor.yml
  56. owner: root
  57. mode: 0644
  58. notify: Immortal restarted