main.yml 537 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. ---
  2. # Checks that every prereq is in place:
  3. #
  4. # Services:
  5. # - DHCP
  6. # - TFTP
  7. # - DNS
  8. # - chronyd
  9. # - haproxy
  10. # - httpd
  11. #
  12. # Tools:
  13. # - openshift-install
  14. # - butane
  15. # - oc
  16. #
  17. # Files:
  18. # - ???
  19. - name: Check services are running
  20. service:
  21. name: "{{ item }}"
  22. state: running
  23. loop:
  24. - dhcpd
  25. - tftp.socket
  26. - named
  27. - chronyd
  28. - haproxy
  29. - httpd
  30. - name: Make sure all the tools are there
  31. file:
  32. path: /usr/local/bin/{{ item }}
  33. state: file
  34. loop:
  35. - openshift-install
  36. - butane
  37. - oc
  38. ...