def setsebools(pairs, persist=False):
 if (not isinstance(pairs, dict)):
  return {}
 if persist:
  cmd = 'setsebool -P '
 else:
  cmd = 'setsebool '
 for (boolean, value) in six.iteritems(pairs):
  cmd = '{0} {1}={2}'.format(cmd, boolean, value)
 return (not __salt__['cmd.retcode'](cmd, python_shell=False))

def setsebools ( pairs , persist = False ) : if ( not isinstance ( pairs , dict ) ) : return { } if persist : cmd = 'setsebool -P ' else : cmd = 'setsebool ' for ( boolean , value ) in six . iteritems ( pairs ) : cmd = '{0} {1}={2}' . format ( cmd , boolean , value ) return ( not __salt__ [ 'cmd.retcode' ] ( cmd , python_shell = False ) )
set the value of multiple booleans cli example: .