You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
667 B

  1. ---
  2. - name: certs | install cert generation script
  3. copy:
  4. src=make-ssl.sh
  5. dest={{ kube_script_dir }}
  6. mode=0500
  7. changed_when: false
  8. - name: certs | write openssl config
  9. template:
  10. src: "openssl.conf.j2"
  11. dest: "{{ kube_config_dir }}/.openssl.conf"
  12. - name: certs | run cert generation script
  13. shell: >
  14. {{ kube_script_dir }}/make-ssl.sh
  15. -f {{ kube_config_dir }}/.openssl.conf
  16. -g {{ kube_cert_group }}
  17. -d {{ kube_cert_dir }}
  18. args:
  19. creates: "{{ kube_cert_dir }}/apiserver.pem"
  20. - name: certs | check certificate permissions
  21. file:
  22. path={{ kube_cert_dir }}
  23. group={{ kube_cert_group }}
  24. owner=kube
  25. recurse=yes