File tree Expand file tree Collapse file tree 4 files changed +36
-3
lines changed Expand file tree Collapse file tree 4 files changed +36
-3
lines changed Original file line number Diff line number Diff line change 4242 fail-fast : false
4343 matrix :
4444 image :
45+ - " ghcr.io/hifis-net/almalinux-systemd:9"
4546 - " ghcr.io/hifis-net/ubuntu-systemd:22.04"
4647 - " ghcr.io/hifis-net/ubuntu-systemd:24.04"
4748
Original file line number Diff line number Diff line change 1010 vars :
1111 # Apply suggested Elasticsearch configuration
1212 elasticsearch_version : " 8.x"
13- elasticsearch_package : " elasticsearch=8.8.1 "
13+ elasticsearch_package : " elasticsearch"
1414 elasticsearch_heap_size_min : " 256m"
1515 elasticsearch_heap_size_max : " 256m"
1616 elasticsearch_extra_options : |
2323 tasks :
2424
2525 - name : " Install required packages"
26+ when : " ansible_facts.os_family == 'Debian'"
2627 ansible.builtin.apt :
2728 name :
2829 - " sudo"
3435 state : " present"
3536 update_cache : true
3637
38+ - name : " Provide SSL/TLS certificate on AlmaLinux"
39+ when : " ansible_facts.os_family == 'RedHat'"
40+ block :
41+ - name : " Ensure SSL/TLS directories exist"
42+ ansible.builtin.file :
43+ path : " {{ item }}"
44+ state : " directory"
45+ mode : ' 0755'
46+ loop :
47+ - " /etc/ssl/private"
48+ - " /etc/ssl/certs"
49+
50+ - name : " Install python-cryptography"
51+ ansible.builtin.pip :
52+ name : " cryptography"
53+
54+ - name : " Create RSA private key"
55+ community.crypto.openssl_privatekey :
56+ path : " /etc/ssl/private/ssl-cert-snakeoil.key"
57+ size : 2048
58+ type : " RSA"
59+ mode : ' 0600'
60+
61+ - name : " Create a snakeoil certificate"
62+ community.crypto.x509_certificate :
63+ path : " /etc/ssl/certs/ssl-cert-snakeoil.pem"
64+ privatekey_path : " /etc/ssl/private/ssl-cert-snakeoil.key"
65+ provider : " selfsigned"
66+ selfsigned_not_after : " +365d"
67+ mode : ' 0644'
68+
3769 - name : " Include geerlingguy.elasticsearch"
3870 ansible.builtin.include_role :
3971 name : " geerlingguy.elasticsearch"
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ File path to the SSL/TLS certificate which is used for HTTPS.
6464zammad_ssl_key_path : " /etc/ssl/private/zammad_key.pem"
6565` ` `
6666
67- File path to the SSL/TLS private key which is used for HTTPS.
67+ File path to the SSL/TLS private key which is used for HTTPS.
6868
6969` ` ` yaml
7070zammad_ssl_cert :
Original file line number Diff line number Diff line change 7979 ansible.builtin.package :
8080 name : " zammad={{ zammad_version }}*"
8181 state : " present"
82- force : true
82+ allow_downgrade : true
8383 notify :
8484 - " Set Elasticsearch server address"
8585 - " Build search index"
You can’t perform that action at this time.
0 commit comments