Fixed the review comments.
Signed-off-by: Baha Mesleh <baha.mesleh@nokia.com>
Change-Id: I2212a5ef7cc41922500164cea8f3d99e01f731a0
#!/bin/env python
# pylint: skip-file
-from ansible.module_utils.basic import *
-import os, json
-import re, sys
-import syslog
+from ansible.module_utils.basic import AnsibleModule
+import os
import re
if __name__ == '__main__':
#!/bin/env python
# pylint: skip-file
-from ansible.module_utils.basic import *
-import os, json
-import re, sys
-import syslog
+from ansible.module_utils.basic import AnsibleModule
+import os
import re
if __name__ == '__main__':
/usr/bin/logger "ntp-check: Succeeded after $i iterations"
exit 0
fi
- /usr/bin/logger "Failed, iteration $i"
+ /usr/bin/logger "ntp-check: Failed, iteration $i"
/usr/bin/sleep 2
done
systemd:
state: started
name: ntpd
-