mirror of
				https://gitlab.sectorq.eu/jaydee/ansible.git
				synced 2025-10-30 18:01:11 +01:00 
			
		
		
		
	bitwarden
This commit is contained in:
		
							
								
								
									
										42
									
								
								roles/autofs-client/tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								roles/autofs-client/tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,42 @@ | ||||
| - block: | ||||
|   - name: include vault | ||||
|     ansible.builtin.include_vars: | ||||
|       file: jaydee.yml | ||||
|   - name: Install autofs | ||||
|     ansible.builtin.apt: | ||||
|       name:  | ||||
|         - autofs | ||||
|         - cifs-utils | ||||
|       state: present | ||||
|  | ||||
|   - name: Creating a file with content | ||||
|     copy: | ||||
|       dest: "/etc/auto.auth" | ||||
|       content: | | ||||
|         username={{ samba_user }} | ||||
|         password={{ samba_password }} | ||||
|          | ||||
|   - name: Creating a file with content | ||||
|     copy: | ||||
|       dest: "/etc/auto.nas" | ||||
|       content: | | ||||
|         nas-data   -fstype=cifs,credentials=/etc/auto.auth,dir_mode=0755,file_mode=0755,uid=jd,rw    ://nas.home.lan/Data | ||||
|         nas-docker-data   -fstype=cifs,credentials=/etc/auto.auth,dir_mode=0755,file_mode=0755,uid=jd,rw    ://nas.home.lan/docker_data | ||||
|         nas-photo   -fstype=cifs,credentials=/etc/auto.auth,dir_mode=0755,file_mode=0755,uid=jd,rw    ://nas.home.lan/Photo | ||||
|         nas-public   -fstype=cifs,credentials=/etc/auto.auth,dir_mode=0755,file_mode=0755,uid=jd,rw    ://nas.home.lan/Public | ||||
|         nas-install   -fstype=cifs,credentials=/etc/auto.auth,dir_mode=0755,file_mode=0755,uid=jd,rw    ://nas.home.lan/install | ||||
|         nas-media   -fstype=cifs,credentials=/etc/auto.auth,dir_mode=0755,file_mode=0755,uid=jd,rw    ://nas.home.lan/Media | ||||
|         nas-downloads   -fstype=cifs,credentials=/etc/auto.auth,dir_mode=0755,file_mode=0755,uid=jd,rw    ://nas.home.lan/downloads | ||||
|  | ||||
|   - name: Reconfigure zabbix agent Server | ||||
|     ansible.builtin.lineinfile: | ||||
|       path: /etc/auto.master | ||||
|       regexp: "^/media/nas.*" | ||||
|       insertafter: '^/media/nas' | ||||
|       line: "/media/nas   /etc/auto.nas --timeout 360 --ghost" | ||||
|  | ||||
|   - name: Restart docker service | ||||
|     ansible.builtin.service: | ||||
|       name: autofs | ||||
|       state: restarted | ||||
|   become: true | ||||
		Reference in New Issue
	
	Block a user
	 jaydee
					jaydee