But, whats the point of having complex args if its not going to be dynamic ?
On Thursday, December 17, 2015 at 12:32:42 PM UTC+1, Luca Berruti wrote:
>
> Now I get a "DEPRECATION WARNING":
>
> [DEPRECATION WARNING]: Using variables for task params is unsafe,
> especially if the variables come from an external source like facts. This
> feature will be removed in a future release. Deprecation warnings can be
> disabled by setting deprecation_warnings=False in ansible.cfg.
>
>
>
> ---
> - hosts: localhost
> connection: local
> gather_facts: false
> vars:
> my_dir:
> path: /tmp/2
> state: directory
> mode: 755
> h: localhost
> tasks:
> - file:
> args: '{{my_dir}}'
>
>
> Il giorno mercoledì 16 dicembre 2015 23:38:17 UTC+1, DomaNitro ha scritto:
>>
>> Hey
>>
>> That was fast
>>
>> fixed it 8716bf8021800a18cb8d6cfea3f296ba4f834692 :)
>>
>> On Wednesday, December 16, 2015 at 8:17:20 PM UTC+1, Luca Berruti wrote:
>>>
>>> Hi Adham,
>>>
>>> see https://github.com/ansible/ansible/issues/13518, the issue is
>>> tagged "v2 milestone"
>>>
>>> Regards,
>>> Luca
>>>
>>> Il giorno mercoledì 16 dicembre 2015 15:59:58 UTC+1, DomaNitro ha
>>> scritto:
>>>>
>>>> Starting to test my roles with ansible 2.0 dev branch
>>>>
>>>> Complex args breaks when using with_ but works with 1.9.X
>>>>
>>>> - name : Loop
>>>>> hosts : all
>>>>> gather_facts : yes
>>>>> become : True
>>>>> vars :
>>>>> usermanage_groupsdb :
>>>>> - name : "group1"
>>>>> state : "present"
>>>>> gid : "5000"
>>>>> system : "true"
>>>>>
>>>>> - name : "group2"
>>>>> state : "present"
>>>>> gid : "5001"
>>>>> system : "false"
>>>>> tasks:
>>>>> - debug: var=usermanage_groupsdb
>>>>> - name: groups | Create groups
>>>>> group:
>>>>> args: "{{ item }}"
>>>>> with_items: usermanage_groupsdb
>>>>>
>>>>>
>>>> I am not sure if thats a bug or its by design. Since the complex args
>>>> was not heavily documented.
>>>> So I dont want to report it on github unless it is
>>>>
>>>>
>>>> Regards
>>>> Adham
>>>>
>>>
--
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/d413db19-4a60-40de-8a93-92818cea1842%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.