summaryrefslogtreecommitdiffstats
path: root/roles/openshift_gcp/tasks/dynamic_inventory.yml
blob: 1637da9458c4293c65dda7bdb518619b2ba71993 (plain)
1
2
3
4
5
---
- name: Extract PEM from service account file
  copy: content="{{ (lookup('file', openshift_gcp_iam_service_account_keyfile ) | from_json ).private_key }}" dest=/tmp/gce.pem mode=0600
- name: Templatize environment script
  template: src=inventory.j2.sh dest=/tmp/inventory.sh mode=u+rx