Hi,
I love the concept of Ansible, and I seem to be getting it down. I have run into one snag. I was attempting to install iptables-persistent via the apt module, and it failed with this error:
msg: 'apt-get install ‘iptables-persistent’ ’ failed: iptables-persistent failed to preconfigure, with exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)
I also ran into this error when attempting to install fail2ban. I have tried it as root and as a sudo user.
Any help would be appreciated.
Thanks for the great product!
Thanks,
John Grasty
Quick question – does it work normally from apt-get install on the command line of the same system?
Well, never mind.
I just did a fresh install of the OS on my VPS, and it failed from the command line as well. Sorry for the trouble, and thanks for the quick response.
Thanks,
John Grasty
Which means apt has interactive questions it need to ask, which you can
preconfigure (dpkg-reconfigure)
Serge
And Ansible is already sending the “don’t be interactive” flags so it sounds like an issue with the package?
some packages will mandate a config even if you say ‘non interactive’, this is where preseeds and dpkg-reconfigure come in handy.
+1 for approving a module on this; this has been a discussion more than
once IIRC?
on my list, closer now, probably will give a stab on it this weekend if my current modules are bug free (i can dream!).
There has, I will remove my RHT-induced bias against the poor Debian installer system and approve it if submitted and reasonably decent
Seems there is still hope for you :-p