Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

36 righe
1.1 KiB

  1. ---
  2. - name: Ensure Matrix base path exists
  3. file:
  4. path: "{{ item }}"
  5. state: directory
  6. mode: "{{ matrix_base_data_path_mode }}"
  7. owner: "{{ matrix_user_username }}"
  8. group: "{{ matrix_user_groupname }}"
  9. with_items:
  10. - "{{ matrix_base_data_path }}"
  11. - name: Preserve vars.yml on the server for easily restoring if it gets lost later on
  12. copy:
  13. src: "{{ matrix_vars_yml_snapshotting_src }}"
  14. dest: "{{ matrix_base_data_path }}/vars.yml"
  15. owner: "{{ matrix_user_username }}"
  16. group: "{{ matrix_user_groupname }}"
  17. mode: '0660'
  18. when: "matrix_vars_yml_snapshotting_enabled|bool"
  19. - name: Ensure Matrix network is created in Docker
  20. docker_network:
  21. name: "{{ matrix_docker_network }}"
  22. driver: bridge
  23. enable_ipv6: " {{ matrix_docker_ipv6_enabled|bool }}"
  24. ipam_config:
  25. - subnet: "fd00::/80"
  26. register: matrix_docker_network_info
  27. - name: Ensure matrix-remove-all script created
  28. template:
  29. src: "{{ role_path }}/templates/usr-local-bin/matrix-remove-all.j2"
  30. dest: "{{ matrix_local_bin_path }}/matrix-remove-all"
  31. mode: 0750