Re: [ansible-project] Triggering handlers from another role

2014-03-10 Thread Nick Groenen
ers/main.yml -- Nick Groenen | zoni | @NickGroenen https://zoni.nl | GnuPG/GPG key ID: 0xAB5382F6 -- 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 an

Re: [ansible-project] Is it possible to get facts from host which are not in the current play?

2014-02-24 Thread Nick Groenen
roles: - role: common - role: nfsserver -- Nick Groenen | zoni | @NickGroenen https://zoni.nl | GnuPG/GPG key ID: 0xAB5382F6 -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop recei

Re: [ansible-project] Testing for a defined but non empty string

2014-01-31 Thread Nick Groenen
Yes, if Ansible sees that as None, then you could use |default(None) like this: when: foo|default(None) != None -- Nick Groenen | zoni | @NickGroenen https://zoni.nl | GnuPG/GPG key ID: 0xAB5382F6 -- You received this message because you are subscribed to the Google Groups "Ansible Pr

Re: [ansible-project] Testing for a defined but non empty string

2014-01-31 Thread Nick Groenen
If setting it to an empty string when you don't want it to run is okay for your use case, you could do: when: foo|default("") != "" That will compare against the value of foo when it's defined, and otherwise compare against an empty string. -- Nick Groenen | zoni

Re: [ansible-project] Re: Force gathering facts on all hosts when using --tags or --limit

2014-01-13 Thread Nick Groenen
help somewhat with this problem, once it's implemented. -- Nick Groenen | zoni | @NickGroenen https://zoni.nl | GnuPG/GPG key ID: 0xAB5382F6 -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and s

Re: [ansible-project] using assemble to build iptables rules

2013-11-26 Thread Nick Groenen
all ports 80 and 443 iptables: state: present ipversion: "{{ item }}" name: 50_nginx rules: | -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT with_items: [4,6] when: nginx_firewall_integration|default(False) [1]: ht

Re: [ansible-project] Permissions / non-existent file errors on handler task attempting to source .bashrc?

2013-11-20 Thread Nick Groenen
uggestions or tips from others as to a better approach than > putting $STOW and $PATH modifications / exports in the .bashrc of the > sysadmin user. I'm not aware of any universal way to do so, either. -- Nick Groenen | zoni | @NickGroenen https://zoni.nl | GnuPG/GPG key ID: 0xAB5382

Re: [ansible-project] Permissions / non-existent file errors on handler task attempting to source .bashrc?

2013-11-19 Thread Nick Groenen
sh for example)? Is there a specific reason you can't just set any necessary environment variables in your playbook, and/or call programs by their full path instead of relying on $PATH? -- Nick Groenen | zoni | @NickGroenen https://zoni.nl | GnuPG/GPG key ID: 0xAB5382F6 -- You received this me