Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

No sudo for iptables commands #4

Open
scheffield opened this issue Apr 4, 2015 · 1 comment
Open

No sudo for iptables commands #4

scheffield opened this issue Apr 4, 2015 · 1 comment

Comments

@scheffield
Copy link

Hi,

other than in ansible-ruby-compiled, the sudo option for the iptable commands is missing. This leads to the following error:

failed: [default] => {"changed": false, "cmd": ["iptables", "-I", "OUTPUT", "-m", "tcp", "-p", "tcp", "-m", "multiport", "--dports", "22,80,443,9418", "-m", "comment", "--comment", "rbenv-ansible-temp", "-j", "ACCEPT"], "delta": "0:00:00.002652", "end": "2015-04-04 09:21:16.135851", "rc": 3, "start": "2015-04-04 09:21:16.133199", "warnings": []}
stderr: multiport: Could not determine whether revision 1 is supported, assuming it is.
modprobe: ERROR: could not insert 'ip_tables': Operation not permitted
iptables v1.4.21: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
@leucos
Copy link
Contributor

leucos commented Apr 4, 2015

@scheffield : I think this relates to erasme/ansible-ruby-compiled#3
My guess is that you're using Ansible version 1.9.0-x here too. Can you check please ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants