Some changes on acme.sh install process
- Remove useless git directory - Force use letsencrypt as default CAfeature/add_main_opts
							parent
							
								
									8de557346e
								
							
						
					
					
						commit
						0622f8ab87
					
				| 
						 | 
				
			
			@ -24,4 +24,12 @@
 | 
			
		|||
        chdir: "{{ nginx_acmesh_git_dir }}"
 | 
			
		||||
        creates: "{{ nginx_acmesh_dir }}"
 | 
			
		||||
 | 
			
		||||
    - name: COMMAND | Force acme.sh to use letsencrypt (instead of zerossl)
 | 
			
		||||
      ansible.builtin.command: '{{ nginx_acmesh_dir }}/acme.sh --set-default-ca --server letsencrypt --home "{{ nginx_acmesh_dir }}"'
 | 
			
		||||
 | 
			
		||||
  when: not acme.stat.exists
 | 
			
		||||
 | 
			
		||||
- name: FILE | Remove temp acme.sh dir
 | 
			
		||||
  ansible.builtin.file:
 | 
			
		||||
    path: '{{ nginx_acmesh_git_dir }}'
 | 
			
		||||
    state: absent
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,4 +4,5 @@
 | 
			
		|||
  ansible.builtin.include_tasks: "{{ ansible_distribution }}.yml"
 | 
			
		||||
 | 
			
		||||
- name: IMPORT_TASKS | acme
 | 
			
		||||
  ansible.builtin.include_tasks: "acme.yml"
 | 
			
		||||
  ansible.builtin.import_tasks: "acme.yml"
 | 
			
		||||
  when: nginx_acmesh
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue