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.
 
 

25 lines
734 B

  1. ---
  2. - name: Ensure Matrix group is created
  3. ansible.builtin.group:
  4. name: "{{ matrix_user_groupname }}"
  5. gid: "{{ omit if matrix_user_gid is none else matrix_user_gid }}"
  6. state: present
  7. register: matrix_group
  8. - name: Ensure Matrix user is created
  9. ansible.builtin.user:
  10. name: "{{ matrix_user_username }}"
  11. uid: "{{ omit if matrix_user_uid is none else matrix_user_uid }}"
  12. state: present
  13. group: "{{ matrix_user_groupname }}"
  14. home: "{{ matrix_base_data_path }}"
  15. create_home: false
  16. system: true
  17. register: matrix_user
  18. - name: Initialize matrix_user_uid and matrix_user_gid
  19. ansible.builtin.set_fact:
  20. matrix_user_uid: "{{ matrix_user.uid }}"
  21. matrix_user_gid: "{{ matrix_group.gid }}"