summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/tasks
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2016-08-25 14:42:40 -0400
committerAndrew Butcher <abutcher@redhat.com>2016-08-25 14:42:40 -0400
commit791640e083c31e4380a3d7cd929fd67567a944f8 (patch)
treed2cf08fbf7a3bca2e5fd35378f40f6758b87f579 /roles/openshift_node/tasks
parentb8e72ea2143834317043f19cbc3dddf8ad9047a5 (diff)
downloadopenshift-791640e083c31e4380a3d7cd929fd67567a944f8.tar.gz
openshift-791640e083c31e4380a3d7cd929fd67567a944f8.tar.bz2
openshift-791640e083c31e4380a3d7cd929fd67567a944f8.tar.xz
openshift-791640e083c31e4380a3d7cd929fd67567a944f8.zip
Don't use openshift_env for cloud provider facts.
Diffstat (limited to 'roles/openshift_node/tasks')
-rw-r--r--roles/openshift_node/tasks/main.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml
index 9c71af6d9..cad549bd2 100644
--- a/roles/openshift_node/tasks/main.yml
+++ b/roles/openshift_node/tasks/main.yml
@@ -89,10 +89,10 @@
create: true
with_items:
- regex: '^AWS_ACCESS_KEY_ID='
- line: "AWS_ACCESS_KEY_ID={{ openshift.cloudprovider.aws.access_key }}"
+ line: "AWS_ACCESS_KEY_ID={{ openshift_cloudprovider_aws_access_key }}"
- regex: '^AWS_SECRET_ACCESS_KEY='
- line: "AWS_SECRET_ACCESS_KEY={{ openshift.cloudprovider.aws.secret_key }}"
- when: "'cloudprovider' in openshift and 'aws' in openshift.cloudprovider and 'kind' in openshift.cloudprovider and openshift.cloudprovider.kind == 'aws' and 'access_key' in openshift.cloudprovider.aws and 'secret_key' in openshift.cloudprovider.aws"
+ line: "AWS_SECRET_ACCESS_KEY={{ openshift_cloudprovider_aws_secret_key }}"
+ when: "openshift_cloudprovider_kind is defined and openshift_cloudprovider_kind == 'aws' and openshift_cloudprovider_aws_access_key is defined and openshift_cloudprovider_aws_secret_key is defined"
notify:
- restart node