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' }