dns_resolver role, update-dns script, dns-deploy playbook, inventory updates
This commit is contained in:
parent
152edb8345
commit
1509daad4c
26 changed files with 780 additions and 176 deletions
29
roles/sshfs_mount/tasks/main.yml
Normal file
29
roles/sshfs_mount/tasks/main.yml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
- name: sshfs installieren
|
||||
apt:
|
||||
name: sshfs
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: Mount-Verzeichnisse anlegen
|
||||
file:
|
||||
path: "{{ item.dest }}"
|
||||
state: directory
|
||||
loop: "{{ sshfs_mounts }}"
|
||||
|
||||
- name: fstab Einträge
|
||||
lineinfile:
|
||||
path: /etc/fstab
|
||||
regexp: ".*{{ item.dest }}.*fuse.sshfs.*"
|
||||
line: "{{ item.src }} {{ item.dest }} fuse.sshfs port={{ item.port }},IdentityFile={{ item.identity_file }},uid={{ item.uid }},gid={{ item.gid }},allow_other,reconnect,ServerAliveInterval=15,ServerAliveCountMax=3,_netdev,noauto,x-systemd.automount 0 0"
|
||||
state: present
|
||||
loop: "{{ sshfs_mounts }}"
|
||||
|
||||
- name: systemd reload für automount
|
||||
systemd:
|
||||
daemon_reload: true
|
||||
|
||||
- name: Mounts aktivieren
|
||||
shell: "mountpoint -q {{ item.dest }} || mount {{ item.dest }}"
|
||||
loop: "{{ sshfs_mounts }}"
|
||||
changed_when: false
|
||||
Loading…
Add table
Add a link
Reference in a new issue