Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 regels
658 B

  1. ---
  2. - name: Create user account
  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