Smarter ufw module.

pull/63/head
James Martin 11 years ago
parent 989a130e1f
commit b5d4acb7db
  1. 6
      riak/library/ufw

@ -57,6 +57,12 @@ def main():
enable = module.params.get('enable')
app = module.params.get('allow')
#we always need ssh for ansible
rc, out, err = module.run_command("ufw allow OpenSSH")
if rc == 1:
module.fail_json(msg=out + err)
rc, out, err = module.run_command("ufw allow %s" % app)
if rc == 1:
module.fail_json(msg=out + err)