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