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.
 
 

28 line
720 B

  1. ---
  2. - name: Ensure Matrix group is created
  3. 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: Set Matrix Group GID Variable
  9. set_fact:
  10. matrix_user_gid: "{{ matrix_group.gid }}"
  11. - name: Ensure Matrix user is created
  12. user:
  13. name: "{{ matrix_user_username }}"
  14. uid: "{{ omit if matrix_user_uid is none else matrix_user_uid }}"
  15. state: present
  16. group: "{{ matrix_user_groupname }}"
  17. home: "{{ matrix_base_data_path }}"
  18. create_home: false
  19. system: true
  20. register: matrix_user
  21. - name: Set Matrix Group UID Variable
  22. set_fact:
  23. matrix_user_uid: "{{ matrix_user.uid }}"