ansible/docker/nfs-client.yml

30 lines
583 B
YAML
Raw Normal View History

2020-04-10 19:23:29 +00:00
---
2020-04-13 15:53:49 +00:00
- name: setup nfs-client
2020-04-10 19:23:29 +00:00
hosts: docker_swarm
become_method: sudo
become_user: root
become: yes
tasks:
2020-04-13 15:53:49 +00:00
- name: install nfs-client
apt:
update_cache: yes
pkg:
- nfs-common
2020-04-10 19:23:29 +00:00
- name: update rpc config
copy:
src: rpc-statd.service
dest: /lib/systemd/system/rpc-statd.service
- name: stop and disable rpc
systemd:
name: rpc-statd
state: stopped
enabled: false
- name: start and enable rpc
systemd:
name: rpc-statd
state: started
enabled: true