hi
i know that the way i put it here it wont work
but what is the proper way to do it? put {{ COUNT }} variable inside
bucket_ram_quota: "{{ ( 800 / {{ COUNT }} ) | int }}"
thanks
===================
example:
- hosts: group_of_couchbase_servers
vars:
COUNT: 2
tasks:
- name: create buckets
run_once: true
shell: "/opt/couchbase/bin/couchbase-cli bucket-create -c
127.0.0.1:8091 --bucket={{ item.bucket_name }} --bucket-type={{
item.bucket_type }} --bucket-port={{ item.bucket_port }}
--bucket-ramsize={{ item.bucket_ram_quota }} --bucket-replica={{
item.num_replicas }} -u {{ admin_user }} -p {{ admin_password }}"
with_items:
- { bucket_name: Test", bucket_type: 'couchbase', bucket_port:
'11211', bucket_ram_quota: "{{ ( 800 / {{ COUNT }} ) | int }}",
num_replicas: '1' }
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/aeee577b-318f-49c3-b9a6-d794a8e9ebcc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.