summaryrefslogtreecommitdiffstats
path: root/playbooks/adhoc
diff options
context:
space:
mode:
authorHugo Rosnet <hrosnet@redhat.com>2016-02-18 21:08:20 +0100
committerHugo Rosnet <hrosnet@redhat.com>2016-02-18 21:08:20 +0100
commiteff8db8b61d08503fcb65605f2f0a92f4962f76a (patch)
tree8e0cbcc3c377ac370802704e25b9250641c84ce1 /playbooks/adhoc
parent3d77c13d82e5abbd1d3684d0baa882e6b21fa602 (diff)
downloadopenshift-eff8db8b61d08503fcb65605f2f0a92f4962f76a.tar.gz
openshift-eff8db8b61d08503fcb65605f2f0a92f4962f76a.tar.bz2
openshift-eff8db8b61d08503fcb65605f2f0a92f4962f76a.tar.xz
openshift-eff8db8b61d08503fcb65605f2f0a92f4962f76a.zip
Rename variable to delete temporary file, add configurable path.
The variable's name for deleting the temporary file was a bit missleading, so it has been renamed to be more explicit. While the path was hardcoded in /root/, which could be problematic when the playbook is not run as run.
Diffstat (limited to 'playbooks/adhoc')
-rw-r--r--playbooks/adhoc/s3_registry/s3_registry.yml7
1 files changed, 4 insertions, 3 deletions
diff --git a/playbooks/adhoc/s3_registry/s3_registry.yml b/playbooks/adhoc/s3_registry/s3_registry.yml
index e24d8196f..daf84e242 100644
--- a/playbooks/adhoc/s3_registry/s3_registry.yml
+++ b/playbooks/adhoc/s3_registry/s3_registry.yml
@@ -16,7 +16,8 @@
aws_bucket_name: "{{ aws_bucket | default(clusterid ~ '-docker') }}"
aws_bucket_region: "{{ aws_region | default(lookup('env', 'S3_REGION') | default('us-east-1', true)) }}"
aws_create_bucket: "{{ aws_create | default(True) }}"
- aws_delete_after_run: "{{ aws_delete_temp | default(True) }}"
+ aws_tmp_path: "{{ aws_tmp_pathfile | default('/root/config.yml')}}"
+ aws_delete_tmp_file: "{{ aws_delete_tmp | default(True) }}"
tasks:
@@ -73,5 +74,5 @@
command: oc scale --replicas=1 dc/docker-registry
- name: Delete temporary config file
- file: path=/root/config.yml state=absent
- when: aws_delete_after_run | bool
+ file: path={{ aws_tmp_path }} state=absent
+ when: aws_delete_tmp_file | bool