Matrix Docker Ansible eploy
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 

53 行
1.7 KiB

  1. ---
  2. - name: Create user account @janitor
  3. command: |
  4. /usr/local/bin/matrix-synapse-register-user janitor {{ matrix_awx_janitor_user_password | quote }} 1
  5. register: cmd
  6. when: not matrix_awx_janitor_user_created|bool
  7. no_log: True
  8. - name: Update AWX janitor user created variable
  9. delegate_to: 127.0.0.1
  10. lineinfile:
  11. path: '/var/lib/awx/projects/clients/{{ member_id }}/{{ subscription_id }}/matrix_vars.yml'
  12. regexp: "^#? *{{ item.key | regex_escape() }}:"
  13. line: "{{ item.key }}: {{ item.value }}"
  14. insertafter: 'AWX Settings'
  15. with_dict:
  16. 'matrix_awx_janitor_user_created': 'true'
  17. when: not matrix_awx_janitor_user_created|bool
  18. - name: Create user account @dimension
  19. command: |
  20. /usr/local/bin/matrix-synapse-register-user dimension {{ matrix_awx_dimension_user_password | quote }} 0
  21. register: cmd
  22. when: not matrix_awx_dimension_user_created|bool
  23. no_log: True
  24. - name: Update AWX dimension user created variable
  25. delegate_to: 127.0.0.1
  26. lineinfile:
  27. path: '/var/lib/awx/projects/clients/{{ member_id }}/{{ subscription_id }}/matrix_vars.yml'
  28. regexp: "^#? *{{ item.key | regex_escape() }}:"
  29. line: "{{ item.key }}: {{ item.value }}"
  30. insertafter: 'AWX Settings'
  31. with_dict:
  32. 'matrix_awx_dimension_user_created': 'true'
  33. when: not matrix_awx_dimension_user_created|bool
  34. - name: Ensure /chroot/website location has correct permissions
  35. file:
  36. path: /chroot/website
  37. state: directory
  38. owner: matrix
  39. group: matrix
  40. mode: '0574'
  41. when: customise_base_domain_website is defined
  42. - name: Ensure erroneous /chroot/website/matrix-domain location doesn't exist
  43. file:
  44. path: /chroot/website/matrix-domain
  45. state: absent
  46. when: customise_base_domain_website is defined