main.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 2020 Dell Technologies
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. ---
  15. - name: Firewall Rule K8s:6443/tcp
  16. command: firewall-cmd --zone=internal --add-port=6443/tcp --permanent
  17. tags: master
  18. - name: Firewall Rule K8s:10250/tcp
  19. command: firewall-cmd --zone=internal --add-port=10250/tcp --permanent
  20. tags: master
  21. - name: Firewall Reload
  22. command: firewall-cmd --reload
  23. tags: master
  24. - name: Create /root/bin (if it doesn't exist)
  25. file:
  26. path: /root/bin
  27. state: directory
  28. mode: 0755
  29. - name: Get Helm Installer
  30. get_url:
  31. url: https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
  32. dest: /root/bin/get_helm.sh
  33. mode: 700
  34. tags: master
  35. - name: Install Helm
  36. command: /root/bin/get_helm.sh
  37. tags: master
  38. # install and start up OpenSM - III