mirror of
				https://gitea.0xace.cc/ansible-galaxy/consul.git
				synced 2025-11-03 23:07:32 +00:00 
			
		
		
		
	add Ubuntu 24.04
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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(',') }}"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user