def add_firewalld_service(service, permanent=True):
yum_install(packages=['<STR_LIT>'])<EOL>with settings(hide('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'),<EOL>warn_only=True, capture=True):<EOL><INDENT>p = '<STR_LIT>'<EOL>if permanent:<EOL><INDENT>p = '<STR_LIT>'<EOL><DEDENT>sudo('<STR_LIT>' % (service, p))<EOL>sudo('<STR_LIT>')<EOL><DEDENT>
adds a firewall rule