Fix pre-commit hooks and move directories
roles/ and inventory/ are now in playbooks/ also fixed issues reported by ansible-lint
This commit is contained in:
		
							parent
							
								
									dc398ddb6e
								
							
						
					
					
						commit
						4104057771
					
				
					 123 changed files with 91 additions and 39 deletions
				
			
		
							
								
								
									
										42
									
								
								playbooks/roles/software/tasks/main.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								playbooks/roles/software/tasks/main.yml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,42 @@ | |||
| - name: Install aptitude | ||||
|   ansible.builtin.apt: | ||||
|     name: aptitude | ||||
|     state: present | ||||
|     update_cache: true | ||||
|   become: true | ||||
| 
 | ||||
| - name: Install docker | ||||
|   ansible.builtin.import_tasks: docker.yml | ||||
| 
 | ||||
| - name: Install jq and bzip2 | ||||
|   ansible.builtin.apt: | ||||
|     pkg: | ||||
|       - jq | ||||
|       - bzip2 | ||||
|     state: present | ||||
|     update_cache: true | ||||
|   become: true | ||||
| 
 | ||||
| - name: Check if autorestic is installed | ||||
|   ansible.builtin.stat: | ||||
|     path: /usr/local/bin/autorestic | ||||
|   register: autorestic_status | ||||
| 
 | ||||
| - name: Install autorestic | ||||
|   ansible.builtin.shell: set -o pipefail && wget -qO - https://raw.githubusercontent.com/cupcakearmy/autorestic/master/install.sh | bash | ||||
|   args: | ||||
|     executable: /bin/bash | ||||
|   when: not autorestic_status.stat.exists | ||||
|   changed_when: true | ||||
|   become: true | ||||
| 
 | ||||
| - name: Check if restic is installed | ||||
|   ansible.builtin.stat: | ||||
|     path: /usr/local/bin/restic | ||||
|   register: restic_status | ||||
| 
 | ||||
| - name: Install restic | ||||
|   ansible.builtin.command: autorestic install | ||||
|   when: not restic_status.stat.exists | ||||
|   changed_when: true | ||||
|   become: true | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue