summaryrefslogtreecommitdiffstats
path: root/playbooks/aws/openshift-cluster/provision_ssh_keypair.yml
diff options
context:
space:
mode:
authorMichael Gugino <mgugino@redhat.com>2017-09-29 15:03:09 -0400
committerMichael Gugino <mgugino@redhat.com>2017-10-02 11:34:49 -0400
commit614dc4ff5a975be8438c9e034c84dba3410c0a20 (patch)
tree8cf7d7e2d60562e7d1834b55e8d6fcce7bdf8b2c /playbooks/aws/openshift-cluster/provision_ssh_keypair.yml
parente54cb2611e86c43650512ee3afee2c6ce846b064 (diff)
downloadopenshift-614dc4ff5a975be8438c9e034c84dba3410c0a20.tar.gz
openshift-614dc4ff5a975be8438c9e034c84dba3410c0a20.tar.bz2
openshift-614dc4ff5a975be8438c9e034c84dba3410c0a20.tar.xz
openshift-614dc4ff5a975be8438c9e034c84dba3410c0a20.zip
Make provisioning steps more reusable
Reorganizing and making some of the plays more reusable.
Diffstat (limited to 'playbooks/aws/openshift-cluster/provision_ssh_keypair.yml')
-rw-r--r--playbooks/aws/openshift-cluster/provision_ssh_keypair.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/playbooks/aws/openshift-cluster/provision_ssh_keypair.yml b/playbooks/aws/openshift-cluster/provision_ssh_keypair.yml
new file mode 100644
index 000000000..3ec683958
--- /dev/null
+++ b/playbooks/aws/openshift-cluster/provision_ssh_keypair.yml
@@ -0,0 +1,12 @@
+---
+- hosts: localhost
+ connection: local
+ gather_facts: no
+ tasks:
+ - name: create an instance and prepare for ami
+ include_role:
+ name: openshift_aws
+ tasks_from: ssh_keys.yml
+ vars:
+ openshift_aws_node_group_type: compute
+ when: openshift_aws_users | default([]) | length > 0