Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

49 Zeilen
1.9 KiB

  1. ---
  2. - name: Ensure matrix_ldap_registration_proxy paths exist
  3. ansible.builtin.file:
  4. path: "{{ item.path }}"
  5. state: directory
  6. mode: 0750
  7. owner: "{{ matrix_user_username }}"
  8. group: "{{ matrix_user_groupname }}"
  9. with_items:
  10. - {path: "{{ matrix_ldap_registration_proxy_config_path }}", when: true}
  11. - {path: "{{ matrix_ldap_registration_proxy_docker_src_files_path }}", when: true}
  12. when: "item.when | bool"
  13. - name: Ensure matrix_ldap_registration_proxy repository is present on self-build
  14. ansible.builtin.git:
  15. repo: "{{ matrix_ldap_registration_proxy_container_image_self_build_repo }}"
  16. dest: "{{ matrix_ldap_registration_proxy_docker_src_files_path }}"
  17. version: "{{ matrix_ldap_registration_proxy_container_image_self_build_branch }}"
  18. force: "yes"
  19. become: true
  20. become_user: "{{ matrix_user_username }}"
  21. register: matrix_ldap_registration_proxy_git_pull_results
  22. - name: Ensure matrix_ldap_registration_proxy Docker image is built
  23. community.docker.docker_image:
  24. name: "{{ matrix_ldap_registration_proxy_docker_image }}"
  25. source: build
  26. force_source: "{{ matrix_ldap_registration_proxy_git_pull_results.changed }}"
  27. build:
  28. dockerfile: Dockerfile
  29. path: "{{ matrix_ldap_registration_proxy_docker_src_files_path }}"
  30. pull: true
  31. when: true
  32. - name: Ensure matrix_ldap_registration_proxy config installed
  33. ansible.builtin.template:
  34. src: "{{ role_path }}/templates/ldap-registration-proxy.env.j2"
  35. dest: "{{ matrix_ldap_registration_proxy_config_path }}/ldap-registration-proxy.env"
  36. mode: 0644
  37. owner: "{{ matrix_user_username }}"
  38. group: "{{ matrix_user_groupname }}"
  39. - name: Ensure matrix-ldap-registration-proxy.service installed
  40. ansible.builtin.template:
  41. src: "{{ role_path }}/templates/systemd/matrix-ldap-registration-proxy.service.j2"
  42. dest: "{{ devture_systemd_docker_base_systemd_path }}/matrix-ldap-registration-proxy.service"
  43. mode: 0644