provision_ssh_keys.yml 327 B

12345678910111213
  1. ---
  2. - name: Templatize SSH key provision script
  3. template:
  4. src: provision_ssh.j2.sh
  5. dest: /tmp/openshift_gcp_provision_ssh.sh
  6. mode: u+rx
  7. - name: Provision GCP SSH key resources
  8. command: /tmp/openshift_gcp_provision_ssh.sh
  9. args:
  10. chdir: "{{ files_dir }}"
  11. when:
  12. - state | default('present') == 'present'