there are lots of non-plain variables in kolla, dict or list in Ansible.

if you do not want to override the dict, you can add following into
globals.yml file.

docker_common_options:
    auth_email: "{{ docker_registry_email }}"
    auth_password: "{{ docker_registry_password }}"
    auth_registry: "{{ docker_registry }}"
    auth_username: "{{ docker_registry_username }}"
    environment:
      KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
      custom_key: custom value
    restart_policy: "{{ docker_restart_policy }}"
    restart_retries: "{{ docker_restart_policy_retry }}"


On Tue, Jul 11, 2017 at 4:55 PM, Paul Bourke <[email protected]> wrote:

> Because its a series of key value pairs: https://github.com/openstack/k
> olla-ansible/blob/master/ansible/group_vars/all.yml#L96-L105
>
> Is there another type you feel would fit better?
>
>
> On 11/07/17 05:22, Margin Hu wrote:
>
>> Hi Guys:
>>
>> I want to set docker_common_options parameter but find its type is
>> dictionary.  why?
>>
>> ansible/roles/zun/tasks/pull.yml:5:    common_options: "{{
>> docker_common_options }}"
>> tests/test_kolla_docker.py:44: common_options=dict(required=False,
>> type='dict', default=dict()),
>>
>>
>>
>>
>> ____________________________________________________________
>> ______________
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe: [email protected]?subject:unsubscrib
>> e
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: [email protected]?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>



-- 
Regards,
Jeffrey Zhang
Blog: http://xcodest.me
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: [email protected]?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to