Starting Foundation automation
This commit is contained in:
		@@ -6,9 +6,47 @@
 | 
			
		||||
       - gitea
 | 
			
		||||
 | 
			
		||||
 - name: BitBot
 | 
			
		||||
   become: yes
 | 
			
		||||
   git:
 | 
			
		||||
     repo: https://github.com/jesopo/bitbot.git
 | 
			
		||||
     dest: /opt/bitbot
 | 
			
		||||
 | 
			
		||||
 - name: Make directories
 | 
			
		||||
   become: yes
 | 
			
		||||
   file:
 | 
			
		||||
     path: "/var/lib/gitea/{{ item }}"
 | 
			
		||||
     owner: gitea
 | 
			
		||||
     group: gitea
 | 
			
		||||
     mode: 0750
 | 
			
		||||
   loop:
 | 
			
		||||
     - "custom/bin"
 | 
			
		||||
     - "web-snippets"
 | 
			
		||||
 | 
			
		||||
 - name: Copy web-snippets
 | 
			
		||||
   become: yes
 | 
			
		||||
   copy:
 | 
			
		||||
     src: web-snippets/
 | 
			
		||||
     dest: /var/lib/gitea/web-snippets
 | 
			
		||||
     owner: gitea
 | 
			
		||||
     group: gitea
 | 
			
		||||
     mode: 0640
 | 
			
		||||
 | 
			
		||||
 - name: Copy scripts
 | 
			
		||||
   become: yes
 | 
			
		||||
   copy:
 | 
			
		||||
     src: custom/
 | 
			
		||||
     dest: /var/lib/gitea/custom/
 | 
			
		||||
     owner: gitea
 | 
			
		||||
     group: gitea
 | 
			
		||||
 | 
			
		||||
 - name: Copy hook
 | 
			
		||||
   become: yes
 | 
			
		||||
   copy:
 | 
			
		||||
     src: gitea.hook
 | 
			
		||||
     dest: /etc/pacman.d/hooks/gitea.hook
 | 
			
		||||
     owner: gitea
 | 
			
		||||
     group: gitea
 | 
			
		||||
 | 
			
		||||
 - name: Generate pages
 | 
			
		||||
   become: yes
 | 
			
		||||
   command: /usr/bin/runuser -u gitea -- /usr/bin/bash /var/lib/gitea/custom/bin/gen-aninix-custom
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user