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