id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14,200 | wait_for_connection.py | ansible_ansible/lib/ansible/modules/wait_for_connection.py | # -*- coding: utf-8 -*-
# Copyright: (c) 2017, Dag Wieers (@dagwieers) <dag@wieers.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = r"""
---
module: wait_for_connection
short_description: Waits until remote system is... | 3,367 | Python | .py | 108 | 27.277778 | 133 | 0.721195 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,201 | systemd.py | ansible_ansible/lib/ansible/modules/systemd.py | # -*- coding: utf-8 -*-
# Copyright: (c) 2016, Brian Coca <bcoca@ansible.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
module: systemd_service
author:
- Ansible Core Team
version_added: "2.2"
short_descrip... | 24,990 | Python | .py | 520 | 36.792308 | 182 | 0.581814 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,202 | group.py | ansible_ansible/lib/ansible/modules/group.py | # -*- coding: utf-8 -*-
# Copyright: (c) 2012, Stephen Fromm <sfromm@gmail.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
---
module: group
version_added: "0.0.2"
short_description: Add or remove groups
require... | 23,747 | Python | .py | 644 | 27.757764 | 141 | 0.561733 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,203 | mount_facts.py | ansible_ansible/lib/ansible/modules/mount_facts.py | # -*- coding: utf-8 -*-
# Copyright: Contributors to the Ansible project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
---
module: mount_facts
version_added: 2.18
short_description: Retrieve mount information.
descr... | 26,009 | Python | .py | 557 | 38.962298 | 155 | 0.64595 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,204 | yumdnf.py | ansible_ansible/lib/ansible/module_utils/yumdnf.py | # -*- coding: utf-8 -*-
#
# # Copyright: (c) 2012, Red Hat, Inc
# Written by Seth Vidal <skvidal at fedoraproject.org>
# Contributing Authors:
# - Ansible Core Team
# - Eduard Snesarev (@verm666)
# - Berend De Schouwer (@berenddeschouwer)
# - Abhijeet Kasurde (@Akasurde)
# GNU General Public License v3.0+ (... | 7,091 | Python | .py | 140 | 41.721429 | 110 | 0.638685 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,205 | errors.py | ansible_ansible/lib/ansible/module_utils/errors.py | # -*- coding: utf-8 -*-
# Copyright (c) 2021 Ansible Project
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
from __future__ import annotations
class AnsibleFallbackNotFound(Exception):
"""Fallback validator was not found"""
class AnsibleValidationErro... | 3,345 | Python | .py | 73 | 40.260274 | 118 | 0.724791 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,206 | ansible_release.py | ansible_ansible/lib/ansible/module_utils/ansible_release.py | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | 857 | Python | .py | 20 | 41.75 | 70 | 0.756886 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,207 | splitter.py | ansible_ansible/lib/ansible/module_utils/splitter.py | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | 9,468 | Python | .py | 183 | 43.027322 | 120 | 0.644432 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,208 | json_utils.py | ansible_ansible/lib/ansible/module_utils/json_utils.py | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | 3,403 | Python | .py | 66 | 46.5 | 112 | 0.719398 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,209 | urls.py | ansible_ansible/lib/ansible/module_utils/urls.py | # -*- coding: utf-8 -*-
# This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own lice... | 54,666 | Python | .py | 1,119 | 39.660411 | 146 | 0.640707 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,210 | pycompat24.py | ansible_ansible/lib/ansible/module_utils/pycompat24.py | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | 2,953 | Python | .py | 60 | 45 | 92 | 0.728819 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,211 | basic.py | ansible_ansible/lib/ansible/module_utils/basic.py | # Copyright (c), Michael DeHaan <michael.dehaan@gmail.com>, 2012-2013
# Copyright (c), Toshio Kuratomi <tkuratomi@ansible.com> 2016
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
from __future__ import annotations
import json
import sys
import typing as t
#... | 86,173 | Python | .py | 1,795 | 35.420056 | 158 | 0.573947 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,212 | api.py | ansible_ansible/lib/ansible/module_utils/api.py | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | 5,785 | Python | .py | 144 | 31.4375 | 145 | 0.630997 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,213 | service.py | ansible_ansible/lib/ansible/module_utils/service.py | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | 10,141 | Python | .py | 241 | 34.481328 | 138 | 0.638183 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,214 | connection.py | ansible_ansible/lib/ansible/module_utils/connection.py | #
# This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete ... | 7,671 | Python | .py | 165 | 38.442424 | 115 | 0.649076 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,215 | _text.py | ansible_ansible/lib/ansible/module_utils/_text.py | # Copyright (c), Toshio Kuratomi <tkuratomi@ansible.com> 2016
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
"""
.. warn:: Use ansible.module_utils.common.text.converters instead.
"""
from __future__ import annotations
# Backwards compat for people still cal... | 544 | Python | .py | 11 | 48.090909 | 106 | 0.797732 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,216 | convert_bool.py | ansible_ansible/lib/ansible/module_utils/parsing/convert_bool.py | # Copyright: 2017, Ansible Project
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause )
from __future__ import annotations
from ansible.module_utils.six import binary_type, text_type
from ansible.module_utils.common.text.converters import to_text
BOOLEANS_TRUE ... | 1,061 | Python | .py | 19 | 51.421053 | 146 | 0.703775 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,217 | __init__.py | ansible_ansible/lib/ansible/module_utils/six/__init__.py | # This code is strewn with things that are not defined on Python3 (unicode,
# long, etc) but they are all shielded by version checks. This is also an
# upstream vendored file that we're not going to modify on our own
# pylint: disable=undefined-variable
#
# Copyright (c) 2010-2020 Benjamin Peterson
#
# Permission is h... | 34,978 | Python | .py | 816 | 35.903186 | 118 | 0.644588 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,218 | warnings.py | ansible_ansible/lib/ansible/module_utils/common/warnings.py | # -*- coding: utf-8 -*-
# Copyright (c) 2019 Ansible Project
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
from __future__ import annotations
from ansible.module_utils.six import string_types
_global_warnings = []
_global_deprecations = []
def warn(warni... | 1,365 | Python | .py | 28 | 43.357143 | 109 | 0.706637 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,219 | arg_spec.py | ansible_ansible/lib/ansible/module_utils/common/arg_spec.py | # -*- coding: utf-8 -*-
# Copyright (c) 2021 Ansible Project
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
from __future__ import annotations
from copy import deepcopy
from ansible.module_utils.common.parameters import (
_ADDITIONAL_CHECKS,
_get_le... | 12,012 | Python | .py | 245 | 38.17551 | 137 | 0.632285 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,220 | network.py | ansible_ansible/lib/ansible/module_utils/common/network.py | # Copyright (c) 2016 Red Hat Inc
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
# General networking tools that may be used by all modules
from __future__ import annotations
import re
from struct import pack
from socket import inet_ntoa
from ansible.module... | 4,226 | Python | .py | 119 | 29.193277 | 113 | 0.614117 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,221 | parameters.py | ansible_ansible/lib/ansible/module_utils/common/parameters.py | # -*- coding: utf-8 -*-
# Copyright (c) 2019 Ansible Project
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
from __future__ import annotations
import datetime
import os
from collections import deque
from itertools import chain
from ansible.module_utils.com... | 37,303 | Python | .py | 750 | 38.910667 | 126 | 0.619074 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,222 | sys_info.py | ansible_ansible/lib/ansible/module_utils/common/sys_info.py | # Copyright (c), Michael DeHaan <michael.dehaan@gmail.com>, 2012-2013
# Copyright (c), Toshio Kuratomi <tkuratomi@ansible.com> 2016
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
from __future__ import annotations
import platform
from ansible.module_utils i... | 5,436 | Python | .py | 117 | 38.529915 | 112 | 0.668561 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,223 | dict_transformations.py | ansible_ansible/lib/ansible/module_utils/common/dict_transformations.py | # -*- coding: utf-8 -*-
# Copyright: (c) 2018, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
import re
from copy import deepcopy
from ansible.module_utils.six.moves.collections_abc import MutableMapping
def camel_di... | 5,525 | Python | .py | 119 | 38.689076 | 112 | 0.642964 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,224 | file.py | ansible_ansible/lib/ansible/module_utils/common/file.py | # Copyright (c) 2018, Ansible Project
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
from __future__ import annotations
import os
import stat
import re
FILE_ATTRIBUTES = {
'A': 'noatime',
'a': 'append',
'c': 'compressed',
'C': 'nocow',
... | 2,982 | Python | .py | 77 | 34.324675 | 113 | 0.666205 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,225 | collections.py | ansible_ansible/lib/ansible/module_utils/common/collections.py | # Copyright: (c) 2018, Sviatoslav Sydorenko <ssydoren@redhat.com>
# Copyright: (c) 2018, Ansible Project
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
"""Collection of low-level utility functions."""
from __future__ import annotations
from ansible.module_u... | 3,850 | Python | .py | 81 | 40.728395 | 135 | 0.688954 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,226 | process.py | ansible_ansible/lib/ansible/module_utils/common/process.py | # Copyright (c) 2018, Ansible Project
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
from __future__ import annotations
import os
from ansible.module_utils.common.file import is_executable
from ansible.module_utils.common.warnings import deprecate
def get... | 2,281 | Python | .py | 53 | 36.358491 | 117 | 0.669526 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,227 | validation.py | ansible_ansible/lib/ansible/module_utils/common/validation.py | # -*- coding: utf-8 -*-
# Copyright (c) 2019 Ansible Project
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
from __future__ import annotations
import decimal
import json
import os
import re
from ast import literal_eval
from ansible.module_utils.common.text.... | 19,630 | Python | .py | 449 | 35.135857 | 107 | 0.637438 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,228 | sentinel.py | ansible_ansible/lib/ansible/module_utils/common/sentinel.py | # Copyright (c) 2019 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
class Sentinel:
"""
Object which can be used to mark whether an entry as being special
A sentinel value demarcates a value or marks an entr... | 2,372 | Python | .py | 49 | 38.571429 | 98 | 0.627927 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,229 | yaml.py | ansible_ansible/lib/ansible/module_utils/common/yaml.py | # (c) 2020 Matt Martz <matt@sivel.net>
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
"""
This file provides ease of use shortcuts for loading and dumping YAML,
preferring the YAML compiled C extensions to reduce duplicated code.
"""
from __future__ import a... | 1,648 | Python | .py | 37 | 40.027027 | 111 | 0.723923 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,230 | locale.py | ansible_ansible/lib/ansible/module_utils/common/locale.py | # Copyright (c), Ansible Project
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
from __future__ import annotations
from ansible.module_utils.common.text.converters import to_native
def get_best_parsable_locale(module, preferences=None, raise_on_locale=Fals... | 2,296 | Python | .py | 46 | 39.565217 | 106 | 0.625671 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,231 | _utils.py | ansible_ansible/lib/ansible/module_utils/common/_utils.py | # Copyright (c) 2018, Ansible Project
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
"""
Modules in _utils are waiting to find a better home. If you need to use them, be prepared for them
to move to a different location in the future.
"""
from __future__ im... | 1,482 | Python | .py | 32 | 39.625 | 106 | 0.680055 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,232 | _collections_compat.py | ansible_ansible/lib/ansible/module_utils/common/_collections_compat.py | # Copyright (c), Sviatoslav Sydorenko <ssydoren@redhat.com> 2018
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
"""Collections ABC import shim.
Use `ansible.module_utils.six.moves.collections_abc` instead, which has been available since ansible-core 2.11.
Thi... | 930 | Python | .py | 24 | 35.458333 | 111 | 0.770764 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,233 | json.py | ansible_ansible/lib/ansible/module_utils/common/json.py | # -*- coding: utf-8 -*-
# Copyright (c) 2019 Ansible Project
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
from __future__ import annotations
import json
import datetime
from ansible.module_utils.common.text.converters import to_text
from ansible.module_u... | 3,188 | Python | .py | 64 | 42.375 | 117 | 0.673969 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,234 | respawn.py | ansible_ansible/lib/ansible/module_utils/common/respawn.py | # Copyright: (c) 2021, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
import os
import subprocess
import sys
import typing as t
from ansible.module_utils.common.text.converters import to_bytes
def has_respawned():
... | 3,799 | Python | .py | 73 | 46.821918 | 132 | 0.725014 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,235 | converters.py | ansible_ansible/lib/ansible/module_utils/common/text/converters.py | # -*- coding: utf-8 -*-
# Copyright (c) 2019 Ansible Project
# (c) 2016 Toshio Kuratomi <tkuratomi@ansible.com>
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
from __future__ import annotations
import codecs
import datetime
import json
from ansible.module_u... | 13,118 | Python | .py | 262 | 41.70229 | 118 | 0.66099 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,236 | formatters.py | ansible_ansible/lib/ansible/module_utils/common/text/formatters.py | # -*- coding: utf-8 -*-
# Copyright (c) 2019 Ansible Project
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
from __future__ import annotations
import re
from ansible.module_utils.six import iteritems
SIZE_RANGES = {
'Y': 1 << 80,
'Z': 1 << 70,
... | 4,502 | Python | .py | 106 | 36.009434 | 155 | 0.592957 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,237 | _distro.py | ansible_ansible/lib/ansible/module_utils/distro/_distro.py | # Copyright 2015-2021 Nir Cohen
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 49,584 | Python | .py | 1,133 | 35.551633 | 88 | 0.635013 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,238 | __init__.py | ansible_ansible/lib/ansible/module_utils/distro/__init__.py | # (c) 2018 Toshio Kuratomi <tkuratomi@ansible.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ... | 1,943 | Python | .py | 46 | 39.847826 | 98 | 0.748941 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,239 | _daemon_threading.py | ansible_ansible/lib/ansible/module_utils/_internal/_concurrent/_daemon_threading.py | """Proxy stdlib threading module that only supports non-joinable daemon threads."""
# NB: all new local module attrs are _ prefixed to ensure an identical public attribute surface area to the module we're proxying
from __future__ import annotations as _annotations
import threading as _threading
import typing as _t
... | 1,084 | Python | .py | 18 | 56 | 129 | 0.729167 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,240 | _futures.py | ansible_ansible/lib/ansible/module_utils/_internal/_concurrent/_futures.py | """Utilities for concurrent code execution using futures."""
from __future__ import annotations
import concurrent.futures
import types
from . import _daemon_threading
class DaemonThreadPoolExecutor(concurrent.futures.ThreadPoolExecutor):
"""ThreadPoolExecutor subclass that creates non-joinable daemon threads f... | 936 | Python | .py | 13 | 68.230769 | 153 | 0.772678 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,241 | default_collectors.py | ansible_ansible/lib/ansible/module_utils/facts/default_collectors.py | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | 8,376 | Python | .py | 163 | 48.920245 | 93 | 0.841913 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,242 | collector.py | ansible_ansible/lib/ansible/module_utils/facts/collector.py | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | 14,716 | Python | .py | 295 | 40.820339 | 135 | 0.671348 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,243 | utils.py | ansible_ansible/lib/ansible/module_utils/facts/utils.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 3,419 | Python | .py | 82 | 33.487805 | 104 | 0.636829 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,244 | namespace.py | ansible_ansible/lib/ansible/module_utils/facts/namespace.py | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | 2,313 | Python | .py | 43 | 50.674419 | 92 | 0.752983 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,245 | __init__.py | ansible_ansible/lib/ansible/module_utils/facts/__init__.py | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | 1,890 | Python | .py | 31 | 59.903226 | 92 | 0.790522 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,246 | ansible_collector.py | ansible_ansible/lib/ansible/module_utils/facts/ansible_collector.py | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | 6,566 | Python | .py | 122 | 44.114754 | 98 | 0.669371 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,247 | packages.py | ansible_ansible/lib/ansible/module_utils/facts/packages.py | # (c) 2018, Ansible Project
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
from __future__ import annotations
import ansible.module_utils.compat.typing as t
from abc import ABCMeta, abstractmethod
from ansible.module_utils.six import with_metaclass
from an... | 4,410 | Python | .py | 93 | 37.580645 | 134 | 0.650012 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,248 | compat.py | ansible_ansible/lib/ansible/module_utils/facts/compat.py | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | 4,062 | Python | .py | 66 | 53.257576 | 94 | 0.696429 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,249 | sysctl.py | ansible_ansible/lib/ansible/module_utils/facts/sysctl.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 2,035 | Python | .py | 49 | 31.755102 | 101 | 0.588235 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,250 | timeout.py | ansible_ansible/lib/ansible/module_utils/facts/timeout.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 2,453 | Python | .py | 56 | 37.642857 | 89 | 0.705956 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,251 | fc_wwn.py | ansible_ansible/lib/ansible/module_utils/facts/network/fc_wwn.py | # Fibre Channel WWN initiator related facts collection for ansible.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your o... | 5,093 | Python | .py | 99 | 35.636364 | 95 | 0.521669 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,252 | linux.py | ansible_ansible/lib/ansible/module_utils/facts/network/linux.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 18,549 | Python | .py | 332 | 38.593373 | 136 | 0.511794 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,253 | iscsi.py | ansible_ansible/lib/ansible/module_utils/facts/network/iscsi.py | # iSCSI initiator related facts collection for Ansible.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any l... | 4,631 | Python | .py | 93 | 40.763441 | 105 | 0.577119 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,254 | hurd.py | ansible_ansible/lib/ansible/module_utils/facts/network/hurd.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 3,066 | Python | .py | 72 | 31.611111 | 84 | 0.569463 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,255 | nvme.py | ansible_ansible/lib/ansible/module_utils/facts/network/nvme.py | # NVMe initiator related facts collection for Ansible.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any la... | 1,996 | Python | .py | 44 | 39.113636 | 86 | 0.692942 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,256 | sunos.py | ansible_ansible/lib/ansible/module_utils/facts/network/sunos.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 4,752 | Python | .py | 99 | 38.070707 | 90 | 0.610524 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,257 | generic_bsd.py | ansible_ansible/lib/ansible/module_utils/facts/network/generic_bsd.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 12,595 | Python | .py | 263 | 36.532319 | 117 | 0.571324 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,258 | base.py | ansible_ansible/lib/ansible/module_utils/facts/network/base.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 2,415 | Python | .py | 56 | 36.035714 | 105 | 0.663396 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,259 | freebsd.py | ansible_ansible/lib/ansible/module_utils/facts/network/freebsd.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 1,137 | Python | .py | 26 | 41.423077 | 84 | 0.788235 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,260 | aix.py | ansible_ansible/lib/ansible/module_utils/facts/network/aix.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 5,988 | Python | .py | 120 | 35.708333 | 106 | 0.537896 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,261 | dragonfly.py | ansible_ansible/lib/ansible/module_utils/facts/network/dragonfly.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 1,149 | Python | .py | 26 | 41.884615 | 84 | 0.79051 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,262 | netbsd.py | ansible_ansible/lib/ansible/module_utils/facts/network/netbsd.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 1,748 | Python | .py | 40 | 38.925 | 85 | 0.711346 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,263 | hpux.py | ansible_ansible/lib/ansible/module_utils/facts/network/hpux.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 3,390 | Python | .py | 82 | 31.414634 | 77 | 0.599028 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,264 | darwin.py | ansible_ansible/lib/ansible/module_utils/facts/network/darwin.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 1,958 | Python | .py | 41 | 42.097561 | 84 | 0.698953 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,265 | openbsd.py | ansible_ansible/lib/ansible/module_utils/facts/network/openbsd.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 1,547 | Python | .py | 33 | 43.575758 | 95 | 0.764276 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,266 | python.py | ansible_ansible/lib/ansible/module_utils/facts/system/python.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 2,014 | Python | .py | 51 | 32.568627 | 72 | 0.663082 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,267 | local.py | ansible_ansible/lib/ansible/module_utils/facts/system/local.py | # Copyright: Contributors to the Ansible project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
import glob
import json
import os
import stat
import ansible.module_utils.compat.typing as t
from ansible.module_utils.common.text.converte... | 4,045 | Python | .py | 90 | 29.855556 | 104 | 0.513074 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,268 | distribution.py | ansible_ansible/lib/ansible/module_utils/facts/system/distribution.py | # -*- coding: utf-8 -*-
# Copyright: (c) Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
import os
import platform
import re
import ansible.module_utils.compat.typing as t
from ansible.module_utils.common.sys_info impor... | 32,759 | Python | .py | 621 | 40.805153 | 135 | 0.578698 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,269 | user.py | ansible_ansible/lib/ansible/module_utils/facts/system/user.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 1,891 | Python | .py | 43 | 37.813953 | 70 | 0.670659 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,270 | service_mgr.py | ansible_ansible/lib/ansible/module_utils/facts/system/service_mgr.py | # Collect facts related to system service manager and init.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) a... | 6,695 | Python | .py | 129 | 42.75969 | 132 | 0.639297 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,271 | cmdline.py | ansible_ansible/lib/ansible/module_utils/facts/system/cmdline.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 2,637 | Python | .py | 63 | 31.761905 | 76 | 0.599922 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,272 | loadavg.py | ansible_ansible/lib/ansible/module_utils/facts/system/loadavg.py | # (c) 2021 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
import os
import ansible.module_utils.compat.typing as t
from ansible.module_utils.facts.collector import BaseFactCollector
class LoadAvgFactCollector(BaseFact... | 769 | Python | .py | 22 | 26.681818 | 92 | 0.599459 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,273 | pkg_mgr.py | ansible_ansible/lib/ansible/module_utils/facts/system/pkg_mgr.py | # Collect facts related to the system package manager
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
import os
import subprocess
import ansible.module_utils.compat.typing as t
from ansible.module_utils.facts.collector import BaseFactC... | 6,404 | Python | .py | 112 | 47.071429 | 116 | 0.598437 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,274 | lsb.py | ansible_ansible/lib/ansible/module_utils/facts/system/lsb.py | # Collect facts related to LSB (Linux Standard Base)
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any late... | 3,483 | Python | .py | 82 | 33.097561 | 92 | 0.603377 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,275 | platform.py | ansible_ansible/lib/ansible/module_utils/facts/system/platform.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 4,090 | Python | .py | 81 | 41.111111 | 104 | 0.631263 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,276 | env.py | ansible_ansible/lib/ansible/module_utils/facts/system/env.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 1,185 | Python | .py | 28 | 38.964286 | 70 | 0.740192 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,277 | chroot.py | ansible_ansible/lib/ansible/module_utils/facts/system/chroot.py | # Copyright (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
import os
import ansible.module_utils.compat.typing as t
from ansible.module_utils.facts.collector import BaseFactCollector
def is_chroot(module=None)... | 1,517 | Python | .py | 35 | 33.057143 | 96 | 0.576583 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,278 | selinux.py | ansible_ansible/lib/ansible/module_utils/facts/system/selinux.py | # Collect facts related to selinux
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ans... | 3,255 | Python | .py | 76 | 33.881579 | 95 | 0.630414 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,279 | date_time.py | ansible_ansible/lib/ansible/module_utils/facts/system/date_time.py | # Data and time related facts collection for ansible.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any lat... | 3,125 | Python | .py | 60 | 46.066667 | 88 | 0.660668 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,280 | caps.py | ansible_ansible/lib/ansible/module_utils/facts/system/caps.py | # Collect facts related to systems 'capabilities' via capsh
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) a... | 2,433 | Python | .py | 50 | 37.72 | 136 | 0.600506 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,281 | fips.py | ansible_ansible/lib/ansible/module_utils/facts/system/fips.py | # Copyright: Contributors to the Ansible project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Determine if a system is in 'fips' mode
from __future__ import annotations
import ansible.module_utils.compat.typing as t
from ansible.module_utils.facts.utils import get_fi... | 812 | Python | .py | 18 | 39.5 | 92 | 0.700127 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,282 | apparmor.py | ansible_ansible/lib/ansible/module_utils/facts/system/apparmor.py | # Collect facts related to apparmor
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# An... | 1,326 | Python | .py | 32 | 37.5625 | 70 | 0.730949 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,283 | ssh_pub_keys.py | ansible_ansible/lib/ansible/module_utils/facts/system/ssh_pub_keys.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 2,239 | Python | .py | 45 | 40.444444 | 76 | 0.635531 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,284 | systemd.py | ansible_ansible/lib/ansible/module_utils/facts/system/systemd.py | # Get systemd version and features
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ans... | 1,661 | Python | .py | 38 | 37.631579 | 81 | 0.69083 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,285 | dns.py | ansible_ansible/lib/ansible/module_utils/facts/system/dns.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 2,692 | Python | .py | 57 | 36.087719 | 82 | 0.57219 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,286 | linux.py | ansible_ansible/lib/ansible/module_utils/facts/virtual/linux.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 17,822 | Python | .py | 355 | 33.853521 | 117 | 0.519233 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,287 | sunos.py | ansible_ansible/lib/ansible/module_utils/facts/virtual/sunos.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 6,217 | Python | .py | 123 | 35.471545 | 116 | 0.542194 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,288 | base.py | ansible_ansible/lib/ansible/module_utils/facts/virtual/base.py | # base classes for virtualization facts
# -*- coding: utf-8 -*-
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your optio... | 2,493 | Python | .py | 63 | 34.063492 | 72 | 0.694698 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,289 | freebsd.py | ansible_ansible/lib/ansible/module_utils/facts/virtual/freebsd.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 3,018 | Python | .py | 61 | 42.885246 | 81 | 0.703061 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,290 | dragonfly.py | ansible_ansible/lib/ansible/module_utils/facts/virtual/dragonfly.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 959 | Python | .py | 20 | 46.15 | 87 | 0.789305 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,291 | sysctl.py | ansible_ansible/lib/ansible/module_utils/facts/virtual/sysctl.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 5,260 | Python | .py | 101 | 37.079208 | 88 | 0.548262 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,292 | netbsd.py | ansible_ansible/lib/ansible/module_utils/facts/virtual/netbsd.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 2,896 | Python | .py | 55 | 45.963636 | 86 | 0.712819 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,293 | hpux.py | ansible_ansible/lib/ansible/module_utils/facts/virtual/hpux.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 2,823 | Python | .py | 61 | 37.836066 | 77 | 0.631904 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,294 | openbsd.py | ansible_ansible/lib/ansible/module_utils/facts/virtual/openbsd.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 2,785 | Python | .py | 58 | 41.724138 | 81 | 0.708333 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,295 | facter.py | ansible_ansible/lib/ansible/module_utils/facts/other/facter.py | # Copyright (c) 2023 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
import json
import ansible.module_utils.compat.typing as t
from ansible.module_utils.facts.namespace import PrefixFactNamespace
from ansible.module_uti... | 2,770 | Python | .py | 61 | 35.540984 | 92 | 0.625465 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,296 | ohai.py | ansible_ansible/lib/ansible/module_utils/facts/other/ohai.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 2,294 | Python | .py | 55 | 34.054545 | 83 | 0.663215 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,297 | linux.py | ansible_ansible/lib/ansible/module_utils/facts/hardware/linux.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 37,316 | Python | .py | 785 | 33.987261 | 128 | 0.53453 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,298 | hurd.py | ansible_ansible/lib/ansible/module_utils/facts/hardware/hurd.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 1,700 | Python | .py | 41 | 36.780488 | 73 | 0.739078 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,299 | sunos.py | ansible_ansible/lib/ansible/module_utils/facts/hardware/sunos.py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 10,609 | Python | .py | 234 | 34.367521 | 108 | 0.572384 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |