ansible/rpc/update-rpc.yml
2020-04-10 21:23:29 +02:00

24 lines
478 B
YAML

---
- name: update rpc-statd
hosts: docker_swarm
become_method: sudo
become_user: root
become: yes
tasks:
- 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