code: def get_audits():
      
      if subprocess.call(['which', 'apache2'], stdout=subprocess.PIPE) != 0:
          log("Apache server does not appear to be installed on this node - "
              "skipping apache hardening", level=INFO)
          return []
  
      context = ApacheConfContext()
      settings = utils.get_settings('apache')
      audits = [
          FilePermissionAudit(paths=os.path.join(
                              settings['common']['apache_dir'], 'apache2.conf'),
                              user='root', group='root', mode=0o0640),
  
          TemplatedFile(os.path.join(settings['common']['apache_dir'],
                                     'mods-available/alias.conf'),
                        context,
                        TEMPLATES_DIR,
                        mode=0o0640,
                        user='root',
                        service_actions=[{'service': 'apache2',
                                          'actions': ['restart']}]),
  
          TemplatedFile(os.path.join(settings['common']['apache_dir'],
                                     'conf-enabled/99-hardening.conf'),
                        context,
                        TEMPLATES_DIR,
                        mode=0o0640,
                        user='root',
                        service_actions=[{'service': 'apache2',
                                          'actions': ['restart']}]),
  
          DirectoryPermissionAudit(settings['common']['apache_dir'],
                                   user='root',
                                   group='root',
                                   mode=0o0750),
  
          DisabledModuleAudit(settings['hardening']['modules_to_disable']),
  
          NoReadWriteForOther(settings['common']['apache_dir']),
  
          DeletedFile(['/var/www/html/index.html'])
      ]
  
      return audits
docs: Get Apache hardening config audits.
  
      :returns:  dictionary of audits