added authentik to ansible
This commit is contained in:
		
							
								
								
									
										26
									
								
								roles/docker/tasks/authentik.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								roles/docker/tasks/authentik.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
			
		||||
- name: make authentik directories
 | 
			
		||||
  ansible.builtin.file:
 | 
			
		||||
    path: "{{ item}}"
 | 
			
		||||
    state: directory
 | 
			
		||||
  loop:
 | 
			
		||||
    - /opt/stacks/authentik
 | 
			
		||||
 | 
			
		||||
- name: Template out the compose file
 | 
			
		||||
  ansible.builtin.template:
 | 
			
		||||
    src: authentik-compose.yml.j2
 | 
			
		||||
    dest: /opt/stacks/authentik/compose.yml
 | 
			
		||||
    owner: root
 | 
			
		||||
    mode: 644
 | 
			
		||||
 | 
			
		||||
- name: Template out the .env file
 | 
			
		||||
  ansible.builtin.template:
 | 
			
		||||
    src: authentik-env.j2
 | 
			
		||||
    dest: /opt/stacks/authentik/.env
 | 
			
		||||
    owner: root
 | 
			
		||||
    mode: 644
 | 
			
		||||
 | 
			
		||||
- name: deploy authentik stack
 | 
			
		||||
  community.docker.docker_compose_v2:
 | 
			
		||||
    project_src: /opt/stacks/authentik
 | 
			
		||||
    files:
 | 
			
		||||
    - compose.yml
 | 
			
		||||
		Reference in New Issue
	
	Block a user