??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó àUdac@`sµddlmZmZmZeZidd6dgd6dd6ZdZd Zd Z dd l Z dd l m Z d „Z d„Zd„Zd„Zd„Zedkr±eƒnd S(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontstableinterfacetstatust communityt supported_bysð --- module: awall short_description: Manage awall policies version_added: "2.4" author: Ted Trask (@tdtrask) description: - This modules allows for enable/disable/activate of I(awall) policies. - Alpine Wall (I(awall)) generates a firewall configuration from the enabled policy files and activates the configuration on the system. options: name: description: - One or more policy names. type: list state: description: - Whether the policies should be enabled or disabled. type: str choices: [ disabled, enabled ] default: enabled activate: description: - Activate the new firewall rules. - Can be run with other steps or on its own. type: bool default: no s2 - name: Enable "foo" and "bar" policy awall: name: [ foo bar ] state: enabled - name: Disable "foo" and "bar" policy and activate new rules awall: name: - foo - bar state: disabled activate: no - name: Activate currently enabled firewall rules awall: activate: yes s # N(t AnsibleModulecC`sRdt}|j|ƒ\}}}|dkr2tS|jddd|d|ƒdS(Ns%s activate --forceitmsgscould not activate new ruleststdouttstderr(t AWALL_PATHt run_commandtTruet fail_json(tmoduletcmdtrcR R ((s@/usr/lib/python2.7/site-packages/ansible/modules/system/awall.pytactivateEs   cC`sFdt}|j|ƒ\}}}tjd||tjƒrBtStS(Ns%s lists ^%s\s+enabled(R R tretsearcht MULTILINERtFalse(RtnameRRR R ((s@/usr/lib/python2.7/site-packages/ansible/modules/system/awall.pytis_policy_enabledNs  c C`s g}x-|D]%}t||ƒs |j|ƒq q W|sU|jdtddƒndj|ƒ}|jrzdt}ndt|f}|j|ƒ\}}}|dkrÑ|jdd|d |d |ƒn|rî|j rît |ƒn|jdt dd |ƒdS( NtchangedR spolicy(ies) already enabledt s%s lists %s enable %sisfailed to enable %sR R senabled awall policy(ies): %s( Rtappendt exit_jsonRtjoint check_modeR R RRR( RtnamestacttpoliciesRRRR R ((s@/usr/lib/python2.7/site-packages/ansible/modules/system/awall.pyt enable_policyVs     # c C`s g}x-|D]%}t||ƒr |j|ƒq q W|sU|jdtddƒndj|ƒ}|jrzdt}ndt|f}|j|ƒ\}}}|dkrÑ|jdd|d |d |ƒn|rî|j rît |ƒn|jdt dd |ƒdS( NRR spolicy(ies) already disabledRs%s lists %s disable %sisfailed to disable %sR R sdisabled awall policy(ies): %s( RRRRRRR R RRR( RR R!R"RRRR R ((s@/usr/lib/python2.7/site-packages/ansible/modules/system/awall.pytdisable_policyjs     # c C`s:tdtdtdddddddgƒd tdd ƒd tdd dtƒƒd d d ggdtƒ}|jddtƒa|j}|d rí|ddkr¿t||d |d ƒqí|ddkrít||d |d ƒqín|d r&|j s t |ƒn|j dtddƒn|j ddƒdS(Nt argument_spectstatettypetstrtdefaulttenabledtchoicestdisabledRtlistRtbooltrequired_one_oftsupports_check_modetawalltrequiredRR sactivated awall rulessno action defined( RtdictRRt get_bin_pathR tparamsR#R$RRRR(Rtp((s@/usr/lib/python2.7/site-packages/ansible/modules/system/awall.pytmain~s&!      t__main__(t __future__RRRR't __metaclass__tANSIBLE_METADATAt DOCUMENTATIONtEXAMPLEStRETURNRtansible.module_utils.basicRRRR#R$R7t__name__(((s@/usr/lib/python2.7/site-packages/ansible/modules/system/awall.pyts