20 lines
		
	
	
		
			537 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			537 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| ---
 | |
| - name: Create static site directories
 | |
|   become: true
 | |
|   ansible.builtin.file:
 | |
|     path: "{{ item.path }}"
 | |
|     state: directory
 | |
|     mode: '0755'
 | |
|     owner: "{{ item.owner }}"
 | |
|     group: "{{ item.owner }}"
 | |
|   loop: "{{ checkout_static_sites_config.checkouts }}"
 | |
| - name: Check out static site repositories
 | |
|   become: true
 | |
|   become_user: "{{ item.owner }}"
 | |
|   ansible.builtin.git:
 | |
|     dest: "{{ item.path }}"
 | |
|     repo: "{{ item.url }}"
 | |
|     version: "{{ item.commit }}"
 | |
|     force: true
 | |
|   loop: "{{ checkout_static_sites_config.checkouts }}"
 |