소스 검색

Merge pull request #1570 from altsalt/install_openssl

only enable openssl if necessary, closes #1510
pull/1571/head
Slavi Pantaleev 4 년 전
committed by GitHub
부모
커밋
b33ea48803
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
4개의 변경된 파일29개의 추가작업 그리고 23개의 파일을 삭제
  1. +23
    -0
      roles/matrix-base/tasks/util/ensure_openssl_installed.yml
  2. +2
    -0
      roles/matrix-bridge-appservice-irc/tasks/setup_install.yml
  3. +2
    -0
      roles/matrix-jitsi/tasks/setup_jitsi_base.yml
  4. +2
    -23
      roles/matrix-nginx-proxy/tasks/ssl/setup_ssl_self_signed.yml

+ 23
- 0
roles/matrix-base/tasks/util/ensure_openssl_installed.yml 파일 보기

@@ -0,0 +1,23 @@

# This is for both CentOS 7 and 8
- name: Ensure openssl installed (CentOS)
yum:
name:
- openssl
state: latest
when: ansible_distribution == 'CentOS'

# This is for both Debian and Raspbian
- name: Ensure openssl installed (Debian/Raspbian)
apt:
name:
- openssl
state: latest
when: ansible_os_family == 'Debian'

- name: Ensure openssl installed (Archlinux)
pacman:
name:
- openssl
state: latest
when: ansible_distribution == 'Archlinux'

+ 2
- 0
roles/matrix-bridge-appservice-irc/tasks/setup_install.yml 파일 보기

@@ -1,5 +1,7 @@
---

- import_tasks: "{{ role_path }}/../matrix-base/tasks/util/ensure_openssl_installed.yml"

- name: Ensure Appservice IRC paths exist
file:
path: "{{ item.path }}"


+ 2
- 0
roles/matrix-jitsi/tasks/setup_jitsi_base.yml 파일 보기

@@ -1,5 +1,7 @@
---

- import_tasks: "{{ role_path }}/../matrix-base/tasks/util/ensure_openssl_installed.yml"

#
# Tasks related to setting up jitsi
#


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

@@ -1,28 +1,7 @@
---

- name: Ensure OpenSSL installed (RedHat)
yum:
name:
- openssl
state: present
update_cache: no
when: "matrix_ssl_retrieval_method == 'self-signed' and ansible_os_family == 'RedHat'"

- name: Ensure APT usage dependencies are installed (Debian)
apt:
name:
- openssl
state: present
update_cache: no
when: "matrix_ssl_retrieval_method == 'self-signed' and ansible_os_family == 'Debian'"

- name: Ensure OpenSSL installed (Archlinux)
pacman:
name:
- openssl
state: latest
update_cache: no
when: "matrix_ssl_retrieval_method == 'self-signed' and ansible_distribution == 'Archlinux'"
- import_tasks: "{{ role_path }}/../matrix-base/tasks/util/ensure_openssl_installed.yml"
when: "matrix_ssl_retrieval_method == 'self-signed'"

- name: Generate self-signed certificates
include_tasks: "{{ role_path }}/tasks/ssl/setup_ssl_self_signed_obtain_for_domain.yml"


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