ansible/docker/ntpdate.yml
2020-04-10 21:38:37 +02:00

14 lines
252 B
YAML

---
- name: update date
hosts: docker_swarm
become_method: sudo
become_user: root
become: yes
tasks:
- name: update datetime via ntpdate
shell:
cmd: |
ntpdate 192.168.50.3
args:
executable: /bin/bash