check if the rule exists or not before allow/deny rules are added/removed, and fixes where result changed would be true on all executions.

This commit is contained in:
Phil
2015-06-18 17:25:05 -05:00
committed by Matt Clay
parent 25a3793a49
commit 6abfcffc70
2 changed files with 32 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2014, Phil Schwartz <schwartzmx@gmail.com>
# (c) 2015, Phil Schwartz <schwartzmx@gmail.com>
#
# This file is part of Ansible
#