Re: [ansible-project] Ansible iterate from file and populate template

2019-06-14 Thread Nicola Contu
I found the way to loop and get variables. Thanks a lot Il giorno gio 13 giu 2019 alle ore 15:50 Sebastian Meyer < me...@b1-systems.de> ha scritto: > Hi Nicola, > > On 13.06.19 15:06, Nicola Contu wrote: > > As I have too many vhosts to be created, I got a file from where I would > > like to rea

Re: [ansible-project] how to exclude directories when I use ansible fetch

2019-06-14 Thread federico montaldo
HI Dick, Thanks for your help. It works. Regards On Thu, Jun 13, 2019 at 8:33 PM Dick Visser wrote: > > Try: > > -- > - hosts: 10.33.81.12 >vars: > dir_src: "C:/Websites/citihabitats.com/" > dir_dest: /tmp/fetched/ >tasks: >- name: fetch nginx access and error log >

RE: [ansible-project] Re: troubleshooting ansible win problem

2019-06-14 Thread william.dossett
Thanks again Jon, yes started looking at pip to install and hopefully can revert to 2.6 today to test if this is the problem definitively. I use my own wsus server and its pretty beefy (just increased the pool memory in it as it did crash sometimes and that all seems good now) and only about

Re: [ansible-project] [WARNING]: flush_handlers task does not support when conditional

2019-06-14 Thread Dick Visser
This appears to be fine, but as you say this is only the role. This indicates that issue is elsewhere, for instance in the calling playbook. Can you share that? On Wed, 12 Jun 2019 at 17:47, tendo.li...@gmail.com wrote: > > I have really simple role, in which I have these tasks: > > --- > > - nam

Re: [ansible-project] Ansible iterate from file and populate template

2019-06-14 Thread Kai Stian Olstad
On 14.06.2019 11:51, Nicola Contu wrote: > I found the way to loop and get variables. It's a common courtesy to also provide the solution. Think about the next person that has the same challenge as you only to find your post that basically only say solved it. -- Kai Stian Olstad -- You rece

Re: [ansible-project] umount: /tmp: target is busy - payload files?

2019-06-14 Thread Kai Stian Olstad
On 13.06.2019 21:21, 'Georg Großmann' via Ansible Project wrote: > Hi! > > I am using a playbook `from github created by Reiner Nippes to setup a > nextcloud server. I changed quite some things to be able to run it on > OpenSuse Tumbleweed. > > In the playbook there is a task to mount /tmp as

[ansible-project] changed_when in a loop gets lost

2019-06-14 Thread Guy Matz
Anyone know why the changed_when is not reflected in the output initially? Only in the summary? Here's the code: - name: disk space check debug: msg: "{{ item.mount }} failed check for {{ item.block_available * 4/1024000 }} free GB (Needed {{ pre_check_filesystems[item.mount] }})" when: it

RE: [ansible-project] Re: troubleshooting ansible win problem

2019-06-14 Thread william.dossett
I back leveled to 2.6, things started working then, but ran into a known bug, advanced to 2.6.2 and it appears stable now. I need to get some updates on windows systems done pretty urgently, as soon as those long running processes finish I will attempt to go back to 2.8 and see if the proble