Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

38 řádky
1.3 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