mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
playbooks
This commit is contained in:
1 parent
69802266ae
commit
ef1efe26b2
36 files changed
+1770
No files matched your search
@@ -0,0 +1,21 @@
|
||||
---
|
||||
- name: Remount NAS drives (mount -a)
|
||||
hosts: debian_host
|
||||
become: true
|
||||
become_user: root
|
||||
gather_facts: false
|
||||
|
||||
tasks:
|
||||
- name: Remount all fstab entries
|
||||
command: mount -a
|
||||
args:
|
||||
creates: /proc/mounts
|
||||
register: mount_result
|
||||
changed_when: mount_result.rc == 0
|
||||
|
||||
- name: Report mount status
|
||||
debug:
|
||||
msg:
|
||||
- "Remount done"
|
||||
- "Hosts affected: {{ ansible_play_hosts_all }}"
|
||||
- "Result: {{ mount_result.rc }}"
|
||||
Reference in new issue
Block a user