ansible/docker/ntpdate.yml

14 lines
252 B
YAML
Raw Normal View History

2020-04-10 19:38:37 +00:00
---
- 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