mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-07-01 15:38:33 +02:00
lala
This commit is contained in:
@ -16,6 +16,22 @@
|
||||
username={{ samba_user }}
|
||||
password={{ samba_password }}
|
||||
|
||||
- name: Creating a file with content
|
||||
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
|
||||
- name: Creating a file with content
|
||||
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
|
||||
- name: Creating a file with content
|
||||
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
|
||||
|
||||
- name: Creating a file with content
|
||||
copy:
|
||||
dest: "/etc/auto.nas"
|
||||
@ -25,15 +41,40 @@
|
||||
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
|
||||
nas-games -fstype=cifs,credentials=/etc/auto.auth,dir_mode=0755,file_mode=0755,uid=jd,rw ://nas.home.lan/qda_2
|
||||
# - name: Reconfigure autofs Server
|
||||
# ansible.builtin.lineinfile:
|
||||
# path: /etc/auto.master
|
||||
# regexp: "^/media/nas.*"
|
||||
# insertafter: '^/media/nas'
|
||||
# line: "/media/nas /etc/auto.nas --timeout 360 --ghost"
|
||||
|
||||
- name: Reconfigure zabbix agent Server
|
||||
- name: Reconfigure autofs Server
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/auto.master
|
||||
regexp: "^/media/nas.*"
|
||||
insertafter: '^/media/nas'
|
||||
line: "/media/nas /etc/auto.nas --timeout 360 --ghost"
|
||||
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
|
||||
line: /media/nas /etc/auto.nas --timeout 360 --ghost
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
- name: Restart docker service
|
||||
ansible.builtin.service:
|
||||
|
Reference in New Issue
Block a user