[ansible-project] Re: Help with blockinfile module running against Proxmox

2018-10-16 Thread Arturo Martínez
Hello Troy, Only joined this group to confirm that your solution works, and say *thank you so much*. I spent a whole weekend trying to find workarounds for this issue, until I found your comment. All the best, Arturo On Saturday, March 10, 2018 at 11:03:20 PM UTC+1, Troy Cauble wrote: > > I f

[ansible-project] Re: Help with blockinfile module running against Proxmox

2018-03-10 Thread saicrazyfire
Hi Troy, No I didn't get it working before but thank you for posting your solution. I will try it out. Thanks. On Saturday, March 10, 2018 at 5:03:20 PM UTC-5, Troy Cauble wrote: > > I found it. /etc/pve is a non-posix compliant filesystem > https://pve.proxmox.com/wiki/Proxmox_Cluster_File_Sy

[ansible-project] Re: Help with blockinfile module running against Proxmox

2018-03-10 Thread Troy Cauble
I found it. /etc/pve is a non-posix compliant filesystem https://pve.proxmox.com/wiki/Proxmox_Cluster_File_System_(pmxcfs) and blockinfile (and many other file modules) do their work in /tmp and end with the equivalent of "cp -a" or "cp -p" which fails to /etc/pve. Workaround is to copy: to /tmp

[ansible-project] Re: Help with blockinfile module running against Proxmox

2018-03-10 Thread Troy Cauble
Did you find a solution? I'm stuck on the same file. Different contents -- I'm doing idmaps, but same file. "msg": "Failed to replace file: /tmp/tmpTzm6Bh to /etc/pve/lxc/100.conf: [Errno 1] Operation not permitted: '/etc/pve/lxc/.ansible_tmpONaD0O100.conf'" -troy On Monday, February 19, 20