[ansible-project] Re: "here doc" in shell command

2017-10-18 Thread thomas . lehmann
Good point. It's seems not officially documented. In my local Ansible installation I've found the relating code part in playbook/tasks.py 182 # the command/shell/script modules used to support the `cmd` arg, 183 # which corresponds to what we now call _raw_params, so

[ansible-project] Re: "here doc" in shell command

2017-10-16 Thread thomas . lehmann
- name: fun fun fun shell: cmd: | #!/bin/bash SCRIPT=$(cat > > I am trying to use a "here doc" in

[ansible-project] Templates: how to handle file encoding and line endings?

2017-10-16 Thread thomas . lehmann
Hi, I'm looking forward to *migrate a large configuration package* to Ansible. With a verification script we check that the finally distributed files are the same as we have without Ansible. In first phase we moved everything into the template folder of the role; reducing configuration code with

Re: [ansible-project] Is splitting of the inventory possible?

2017-07-06 Thread thomas . lehmann
We have that but it does not answer my question. We still would have *one inventory file* with all hosts for 1000 projects per qa, dev and prod, right? (we have less than 1000 ... is just a forced example) Is it possible to organize ... that OPS can "walk" all hosts also the repository has -

[ansible-project] Is splitting of the inventory possible?

2017-07-06 Thread thomas . lehmann
Hi, assume we would have 1000 projects in a big company and an OPS guys tells us to copy every detail for provisioning for qa, dev and prod in one repository. Some told arguments: - just to clone one repository - all Unix machines require a basic setup and therefore the concrete