Re: [ansible-project] delegate_to and ansible_host

2017-08-11 Thread Vladimir-csp
All hosts are already in the inventory. The delegation breaks when ansible_host variable is given on the command line. -- 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

[ansible-project] delegate_to and ansible_host

2017-08-07 Thread Vladimir-csp
Hi all. I have a problem with delegate_to. I use a role which governs users, and it has a delegated task that gathers getent facts from a specific server, let's say 'getent-server' Everything works fine until I try to apply this role to an unresolvable host, let's say 'ur-host' by using

[ansible-project] How to omit undefined vars in filters?

2015-05-18 Thread Vladimir-csp
Hi! I have a syntax question. When putting variable in module's parameter, you can omit it if it is undefined, like so: parameter: {{ variable | default(omit) }} But how to do the same thing with list filters where either var can be undefined? parameter: {{ list1 | difference(list2) }} How to