add Ubuntu 24.04

This commit is contained in:
ace 2024-05-16 17:57:54 +03:00
parent c44883d0cd
commit 6535694d19
Signed by: ace
GPG Key ID: 2C08973DD37A76FD
3 changed files with 7 additions and 6 deletions

View File

@ -1,7 +1,7 @@
Consul role
Idempotent ansible role for Consul
Tested with OS:
- Rocky Linux 8/9
- AlmaLinux 8/9
- Debian 11/12
- Ubuntu 20.04/22.04
- Ubuntu 20.04/22.04/24.04

View File

@ -24,6 +24,7 @@
include_tasks: "{{ ansible_facts['os_family'] }}/main.yaml"
- name: SSL certificates generation
#import_tasks: cacert.yaml
import_tasks: ssl/main.yaml
when: consul_ssl

View File

@ -41,28 +41,28 @@
- consul_cacert_force_append_names is defined
- consul_cacert_force_append_names | length > 0
- name: Construct base subject_alt_name
- name: Construct subject_alt_name
set_fact:
subject_alt_name:
- "{{ consul_server_subject_alt_names }}"
- "{{ consul_server_subject_alt_ips_from_ansible_host }}"
- "{{ consul_server_subject_alt_ips_all_ipv4 }}"
- name: Construct subject_alt_name with consul_server_subject_alt_ips
- name: Construct subject_alt_name
set_fact:
subject_alt_name:
- "{{ subject_alt_name | join(',') }}"
- "{{ consul_server_subject_alt_ips }}"
when: consul_server_subject_alt_ips is defined
- name: Construct subject_alt_name with consul_server_subject_alt_ips_force_append
- name: Construct subject_alt_name
set_fact:
subject_alt_name:
- "{{ subject_alt_name | join(',') }}"
- "{{ consul_server_subject_alt_ips_force_append }}"
when: consul_server_subject_alt_ips_force_append is defined
- name: Construct subject_alt_name with consul_server_subject_alt_names_force_append
- name: Construct subject_alt_name
set_fact:
subject_alt_name:
- "{{ subject_alt_name | join(',') }}"