[ansible-project] Re: group_by adding all hosts?

2014-03-10 Thread Matthew R
Hi Brian, Thanks for the tip. I actually tried changing the hyphen to an underscore, but no luck. I think what's happening is that on Linux systems that aren't virtualized, the 'ansible_virtualization_*' facts aren't getting set at all, so the grouping mechanism can't handle it. I'm thinking

[ansible-project] group_by adding all hosts?

2014-03-07 Thread Matthew R
Hi, I'm pulling my hair out on this, but it's probably something simple. I'm trying to create a dynamic group that has all our OpenVZ Guests in it. So, in my 'site.yml' I have: - name: Setup Groups hosts: all tasks: - name: Create Groups based on OS group_by: key=dist_{{

[ansible-project] lineinfile help (file doesn't exist)

2014-02-28 Thread Matthew R
Hi everyone, I'm still a bit new to Ansible. I really like it, but it can be a little flummoxing at times for a beginner ;). For example, I am probably going about this the wrong way, but consider these lines from a playbook: - name: Configure MTA to Local Only -- CIS 3.16 lineinfile: