code: def setsemod(module, state):
      '''
      Enable or disable an SELinux module.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' selinux.setsemod nagios Enabled
  
      .. versionadded:: 2016.3.0
      '''
      if state.lower() == 'enabled':
          cmd = 'semodule -e {0}'.format(module)
      elif state.lower() == 'disabled':
          cmd = 'semodule -d {0}'.format(module)
      return not __salt__['cmd.retcode'](cmdf setsemod(module, state):
      '''
      Enable or disable an SELinux module.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' selinux.setsemod nagios Enabled
  
      .. versionadded:: 2016.3.0
      '''
      if state.lower() == 'enabled':
          cmd = 'semodule -e {0}'.format(module)
      elif state.lower() == 'disabled':
          cmd = 'semodule -d {0}'.format(module)
      return not __salt__['cmd.retcode'](cmd)
docs: Enable or disable an SELinux module.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' selinux.setsemod nagios Enabled
  
      .. versionadded:: 2016.3.0