tripleo-validations/validations/ntpstat.yaml
Gael Chamoulaud 6406ef8bd8 Add ansible-lint script
This patch adds tools/ansible-lint.sh script to lint validations playbooks.
Moreover, it adds `changed_when: False` to commands that should not change
things if nothing needs doing [ANSIBLE0012].

Change-Id: I4fb432bfbd2b73740c29011d08a09058b6c45348
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2017-12-01 09:29:51 +01:00

18 lines
538 B
YAML

---
- hosts: overcloud
vars:
metadata:
name: Verify all deployed nodes have their clock synchronised
description: >
Each overcloud node should have their clocks synchronised.
The deployment should configure and run ntpd. This validation verifies
that it is indeed running and connected to an NPT server on all nodes.
groups:
- post-deployment
tasks:
- name: Run ntpstat
# ntpstat returns 0 if synchronised and non-zero otherwise:
command: ntpstat
changed_when: False