mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-12-14 01:54:56 +01:00
klal
This commit is contained in:
@@ -30,7 +30,16 @@
|
||||
owner: root
|
||||
group: root
|
||||
when: inventory_hostname != 'm-server.home.lan'
|
||||
- name: Creating a file with content
|
||||
ansible.builtin.copy:
|
||||
dest: "/etc/auto.amd"
|
||||
content: |
|
||||
backup -fstype=nfs amd.home.lan:/backup
|
||||
|
||||
mode: '0600'
|
||||
owner: root
|
||||
group: root
|
||||
when: inventory_hostname == 'm-server.home.lan'
|
||||
- name: Creating a file with content
|
||||
ansible.builtin.copy:
|
||||
dest: "/etc/auto.rack"
|
||||
@@ -192,6 +201,11 @@
|
||||
path: /etc/auto.master
|
||||
regexp: "^/media/rpi5.*"
|
||||
line: /media/rpi5 /etc/auto.rpi5 --timeout 360 --ghost
|
||||
- name: Reconfigure autofs Server
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/auto.master
|
||||
regexp: "^/media/amd.*"
|
||||
line: /media/amd /etc/auto.amd --timeout 360 --ghost
|
||||
|
||||
- name: Restart docker service
|
||||
ansible.builtin.service:
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
- name: Mount and bind a volume
|
||||
ansible.posix.mount:
|
||||
path: /srv/nfs/backup
|
||||
src: /mnt/raid/downloads
|
||||
src: /mnt/raid/backup
|
||||
opts: bind
|
||||
state: mounted
|
||||
fstype: none
|
||||
|
||||
Reference in New Issue
Block a user