소스 검색

Remove sudo requirement for generating SSL certificates

Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1492
pull/1500/head
Slavi Pantaleev 4 년 전
부모
커밋
948c411106
1개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. +9
    -2
      roles/matrix-nginx-proxy/tasks/ssl/setup_ssl_self_signed_obtain_for_domain.yml

+ 9
- 2
roles/matrix-nginx-proxy/tasks/ssl/setup_ssl_self_signed_obtain_for_domain.yml 파일 보기

@@ -37,6 +37,13 @@
-keyout {{ matrix_ssl_certificate_cert_key_path }} \
-out {{ matrix_ssl_certificate_cert_path }} \
-days 3650
become: true
become_user: "{{ matrix_user_username }}"
when: "not matrix_ssl_certificate_cert_path_stat_result.stat.exists"

- name: Adjust SSL certificate file ownership
file:
path: "{{ item }}"
owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}"
with_items:
- "{{ matrix_ssl_certificate_cert_key_path }}"
- "{{ matrix_ssl_certificate_cert_path }}"

불러오는 중...
취소
저장