mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-10-29 17:40:08 +01:00
lala
This commit is contained in:
@@ -29,47 +29,75 @@
|
||||
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=0755,file_mode=0755,uid=jd,rw ://nas.home.lan/movies
|
||||
# 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=0755,file_mode=0755,uid=jd,rw ://nas.home.lan/movies
|
||||
movies --fstype=nfs,rw nas.home.lan:/movies
|
||||
mode: '0600'
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Creating a file with content
|
||||
ansible.builtin.copy:
|
||||
dest: "/etc/auto.nas-music"
|
||||
content: |
|
||||
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
|
||||
# - name: Creating a file with content
|
||||
# ansible.builtin.copy:
|
||||
# dest: "/etc/auto.nas-music"
|
||||
# content: |
|
||||
# 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
|
||||
|
||||
- name: Creating a file with content
|
||||
ansible.builtin.copy:
|
||||
dest: "/etc/auto.nas-shows"
|
||||
content: |
|
||||
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
|
||||
# - name: Creating a file with content
|
||||
# ansible.builtin.copy:
|
||||
# dest: "/etc/auto.nas-music"
|
||||
# content: |
|
||||
# music --fstype=nfs,rw ://nas.home.lan/music
|
||||
# mode: '0600'
|
||||
# owner: root
|
||||
# group: root
|
||||
|
||||
# - name: Creating a file with content
|
||||
# ansible.builtin.copy:
|
||||
# dest: "/etc/auto.nas-shows"
|
||||
# content: |
|
||||
# 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
|
||||
|
||||
# - name: Creating a file with content
|
||||
# ansible.builtin.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-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: '0600'
|
||||
# owner: root
|
||||
# group: root
|
||||
|
||||
- name: Creating a file with content
|
||||
ansible.builtin.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-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
|
||||
nas-data --fstype=nfs,rw nas.home.lan:/Data
|
||||
qda_1 --fstype=nfs,rw nas.home.lan:/qda_1
|
||||
mode: '0600'
|
||||
owner: root
|
||||
group: root
|
||||
group: root
|
||||
# - name: Reconfigure autofs Server
|
||||
# ansible.builtin.lineinfile:
|
||||
# path: /etc/auto.master
|
||||
@@ -77,21 +105,21 @@
|
||||
# insertafter: '^/media/nas'
|
||||
# line: "/media/nas /etc/auto.nas --timeout 360 --ghost"
|
||||
|
||||
- name: Reconfigure autofs Server
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/auto.master
|
||||
regexp: "^/media/data/music/nas.*"
|
||||
line: /media/data/music/nas /etc/auto.nas-music --timeout 360 --ghost
|
||||
# - name: Reconfigure autofs Server
|
||||
# ansible.builtin.lineinfile:
|
||||
# path: /etc/auto.master
|
||||
# regexp: "^/media/data/music/nas.*"
|
||||
# line: /media/data/music/nas /etc/auto.nas-music --timeout 360 --ghost
|
||||
- name: Reconfigure autofs Server
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/auto.master
|
||||
regexp: "^/media/data/movies/nas.*"
|
||||
line: /media/data/movies/nas /etc/auto.nas-movies --timeout 360 --ghost
|
||||
- name: Reconfigure autofs Server
|
||||
ansible.builtin.lineinfile:
|
||||
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
|
||||
# regexp: "^/media/data/shows/nas.*"
|
||||
# line: /media/data/shows/nas /etc/auto.nas-shows --timeout 360 --ghost
|
||||
|
||||
|
||||
- name: Reconfigure autofs Server
|
||||
|
||||
Reference in New Issue
Block a user