main.yml 2.1 KB

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