When switching to root it works, using a user having sudo rights with 
NOPASSWD it does not work

On Wednesday, February 10, 2016 at 3:27:46 PM UTC+1, Sascha Andres wrote:
>
> Hello,
>
> I have two machines both running ansible 2.0.0.2 on Ubuntu 14.04.3 LTS. On 
> one machine ( my work machine )
> the yaml file works well while on the deployment server it throws an error 
> "ERROR! failed to combine variables, expected dicts but got a 'dict' and a 
> 'AnsibleUnicode'"
>
> ---
>
> - hosts: docker_staging
>   vars:
>   - domain: abc.de
>   - web_port: 8008
>   - identifier: abc
>   - instance: web
>   - image_suffix: -web
>   - enc_key: 0x0
>   tasks:
>   - include: tasks/deploy.yaml
>   
> There is a group_vars/docker_staging.yaml which contains some variables:
>
> ---
> nginx_blacklist: yes
> nginx_servers:
> - {
>     server_name: abc.de,
>     db_name: sta_abc,
>     db_pass: password,
>     db_user: abc_user,
>     db_host: "db.abc.de",
>     listen: 80,
>     ssl: off,
>     proxy_pass: "localhost:8001",
>     additionals: [
>       "client_max_body_size 200M;"
>     ]
>   }
>   
> This worked well on my machine but has thrown the above error on the 
> deployment server. However, when I change the main.yaml to use include_vars 
> and rename group_vars to something 
> else it works:
>
> ---
>
> - hosts: docker_staging
>   vars:
>   - domain: abc.de
>   - web_port: 8008
>   - identifier: abc
>   - instance: web
>   - image_suffix: -web
>   - enc_key: 0x0
>   tasks:
>   - include_vars: application_vars/docker_staging.yaml
>   - include: tasks/deploy.yaml
>   
> This is odd behaviour. Any help on this?
>
> Kind regards,
> Sascha
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e961a9a8-385f-4877-befe-e33af7274bec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to