mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-07-02 07:48:32 +02:00
klal
This commit is contained in:
@ -17,16 +17,24 @@
|
||||
content: |
|
||||
username={{ samba_user }}
|
||||
password={{ samba_password }}
|
||||
mode: '0700'
|
||||
mode: '0600'
|
||||
owner: root
|
||||
group: root
|
||||
- name: Creating a file with content
|
||||
ansible.builtin.copy:
|
||||
dest: "/etc/auto.m-server"
|
||||
content: |
|
||||
docker_data -fstype=nfs m-server.home.lan:/share/docker_data
|
||||
downloads -fstype=nfs m-server.home.lan:/media/data/downloads
|
||||
mode: '0600'
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Creating a file with content
|
||||
ansible.builtin.copy:
|
||||
dest: "/etc/auto.nas-movies"
|
||||
content: |
|
||||
movies -fstype=cifs,credentials=/etc/auto.auth,dir_mode=0777,file_mode=0777,uid=jd,rw ://nas.home.lan/movies
|
||||
mode: '0700'
|
||||
movies -fstype=cifs,credentials=/etc/auto.auth,dir_mode=0755,file_mode=0755,uid=jd,rw ://nas.home.lan/movies
|
||||
mode: '0600'
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
@ -34,8 +42,8 @@
|
||||
ansible.builtin.copy:
|
||||
dest: "/etc/auto.nas-music"
|
||||
content: |
|
||||
music -fstype=cifs,credentials=/etc/auto.auth,dir_mode=0777,file_mode=0777,uid=jd,rw ://nas.home.lan/music
|
||||
mode: '0700'
|
||||
music -fstype=cifs,credentials=/etc/auto.auth,dir_mode=0755,file_mode=0755,uid=jd,rw ://nas.home.lan/music
|
||||
mode: '0600'
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
@ -43,8 +51,8 @@
|
||||
ansible.builtin.copy:
|
||||
dest: "/etc/auto.nas-shows"
|
||||
content: |
|
||||
shows -fstype=cifs,credentials=/etc/auto.auth,dir_mode=0777,file_mode=0777,uid=jd,rw ://nas.home.lan/shows
|
||||
mode: '0700'
|
||||
shows -fstype=cifs,credentials=/etc/auto.auth,dir_mode=0755,file_mode=0755,uid=jd,rw ://nas.home.lan/shows
|
||||
mode: '0600'
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
@ -54,12 +62,12 @@
|
||||
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-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-downloads -fstype=cifs,credentials=/etc/auto.auth,dir_mode=0755,file_mode=0755,uid=jd,rw ://nas.home.lan/downloads
|
||||
nas-games -fstype=cifs,credentials=/etc/auto.auth,dir_mode=0755,file_mode=0755,uid=jd,rw ://nas.home.lan/qda_2
|
||||
mode: '0700'
|
||||
nas-games -fstype=cifs,credentials=/etc/auto.auth,dir_mode=0755,file_mode=0755,uid=jd,rw ://nas.home.lan/qda_2
|
||||
mode: '0600'
|
||||
owner: root
|
||||
group: root
|
||||
# - name: Reconfigure autofs Server
|
||||
@ -84,10 +92,16 @@
|
||||
path: /etc/auto.master
|
||||
regexp: "^/media/data/shows/nas.*"
|
||||
line: /media/data/shows/nas /etc/auto.nas-shows --timeout 360 --ghost
|
||||
|
||||
|
||||
- name: Reconfigure autofs Server
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/auto.master
|
||||
line: /media/nas /etc/auto.nas --timeout 360 --ghost
|
||||
- name: Reconfigure autofs Server
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/auto.master
|
||||
line: /media/m-server /etc/auto.m-server --timeout 360 --ghost
|
||||
|
||||
- name: Restart docker service
|
||||
ansible.builtin.service:
|
||||
|
Reference in New Issue
Block a user