--- user_config: True copy_admin_key: True test: name: "test" pg_num: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" pgp_num: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" rule_name: "HDD" type: 1 erasure_profile: "" expected_num_objects: "" test2: name: "test2" pg_num: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" pgp_num: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" rule_name: "HDD" type: 1 erasure_profile: "" expected_num_objects: "" pools: - "{{ test }}" - "{{ test2 }}"