403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib/python3.11/site-packages/ansible/modules/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib/python3.11/site-packages/ansible/modules/__pycache__/apt.cpython-311.pyc
�

���c���
��ddlmZmZmZeZdZdZdZddl	Z	e	j
dde��ddlZddl
Z
ddlZddlZddlZddlZddlZddlZddlZddlZddlmZdd	lmZdd
lmZmZmZddlmZm Z ddl!m"Z"m#Z#dd
l$m%Z%dZ&dZ'dZ(dZ)dZ*dZ+dZ,e-dd���Z.dZ/	ddl0Z0ddl1Z0ddl2Z2dZ/n#e3$rdxZ0Z2YnwxYwGd�de4��Z5d�Z6d�Z7d�Z8d�Z9d �Z:d!�Z;d"�Z<d#�Z=dddde:e&��ddddddddf
d$�Z>d2d&�Z?d'�Z@dde:e&��dfd(�ZAddde:e&��fd)�ZBd*�ZCd+ddde:e&��ddddf	d,�ZDd-�ZEd.�ZFd/�ZGd0�ZHeId1kreH��dSdS)3�)�absolute_import�division�print_functiona$
---
module: apt
short_description: Manages apt-packages
description:
  - Manages I(apt) packages (such as for Debian/Ubuntu).
version_added: "0.0.2"
options:
  name:
    description:
      - A list of package names, like C(foo), or package specifier with version, like C(foo=1.0) or C(foo>=1.0).
        Name wildcards (fnmatch) like C(apt*) and version wildcards like C(foo=1.0*) are also supported.
    aliases: [ package, pkg ]
    type: list
    elements: str
  state:
    description:
      - Indicates the desired package state. C(latest) ensures that the latest version is installed. C(build-dep) ensures the package build dependencies
        are installed. C(fixed) attempt to correct a system with broken dependencies in place.
    type: str
    default: present
    choices: [ absent, build-dep, latest, present, fixed ]
  update_cache:
    description:
      - Run the equivalent of C(apt-get update) before the operation. Can be run as part of the package installation or as a separate step.
      - Default is not to update the cache.
    aliases: [ update-cache ]
    type: bool
  update_cache_retries:
    description:
      - Amount of retries if the cache update fails. Also see I(update_cache_retry_max_delay).
    type: int
    default: 5
    version_added: '2.10'
  update_cache_retry_max_delay:
    description:
      - Use an exponential backoff delay for each retry (see I(update_cache_retries)) up to this max delay in seconds.
    type: int
    default: 12
    version_added: '2.10'
  cache_valid_time:
    description:
      - Update the apt cache if it is older than the I(cache_valid_time). This option is set in seconds.
      - As of Ansible 2.4, if explicitly set, this sets I(update_cache=yes).
    type: int
    default: 0
  purge:
    description:
     - Will force purging of configuration files if the module state is set to I(absent).
    type: bool
    default: 'no'
  default_release:
    description:
      - Corresponds to the C(-t) option for I(apt) and sets pin priorities
    aliases: [ default-release ]
    type: str
  install_recommends:
    description:
      - Corresponds to the C(--no-install-recommends) option for I(apt). C(true) installs recommended packages.  C(false) does not install
        recommended packages. By default, Ansible will use the same defaults as the operating system. Suggested packages are never installed.
    aliases: [ install-recommends ]
    type: bool
  force:
    description:
      - 'Corresponds to the C(--force-yes) to I(apt-get) and implies C(allow_unauthenticated: yes) and C(allow_downgrade: yes)'
      - "This option will disable checking both the packages' signatures and the certificates of the
        web servers they are downloaded from."
      - 'This option *is not* the equivalent of passing the C(-f) flag to I(apt-get) on the command line'
      - '**This is a destructive operation with the potential to destroy your system, and it should almost never be used.**
         Please also see C(man apt-get) for more information.'
    type: bool
    default: 'no'
  clean:
    description:
      - Run the equivalent of C(apt-get clean) to clear out the local repository of retrieved package files. It removes everything but
        the lock file from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/.
      - Can be run as part of the package installation (clean runs before install) or as a separate step.
    type: bool
    default: 'no'
    version_added: "2.13"
  allow_unauthenticated:
    description:
      - Ignore if packages cannot be authenticated. This is useful for bootstrapping environments that manage their own apt-key setup.
      - 'C(allow_unauthenticated) is only supported with state: I(install)/I(present)'
    aliases: [ allow-unauthenticated ]
    type: bool
    default: 'no'
    version_added: "2.1"
  allow_downgrade:
    description:
      - Corresponds to the C(--allow-downgrades) option for I(apt).
      - This option enables the named package and version to replace an already installed higher version of that package.
      - Note that setting I(allow_downgrade=true) can make this module behave in a non-idempotent way.
      - (The task could end up with a set of packages that does not match the complete list of specified packages to install).
    aliases: [ allow-downgrade, allow_downgrades, allow-downgrades ]
    type: bool
    default: 'no'
    version_added: "2.12"
  allow_change_held_packages:
    description:
      - Allows changing the version of a package which is on the apt hold list
    type: bool
    default: 'no'
    version_added: '2.13'
  upgrade:
    description:
      - If yes or safe, performs an aptitude safe-upgrade.
      - If full, performs an aptitude full-upgrade.
      - If dist, performs an apt-get dist-upgrade.
      - 'Note: This does not upgrade a specific package, use state=latest for that.'
      - 'Note: Since 2.4, apt-get is used as a fall-back if aptitude is not present.'
    version_added: "1.1"
    choices: [ dist, full, 'no', safe, 'yes' ]
    default: 'no'
    type: str
  dpkg_options:
    description:
      - Add dpkg options to apt command. Defaults to '-o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold"'
      - Options should be supplied as comma separated list
    default: force-confdef,force-confold
    type: str
  deb:
     description:
       - Path to a .deb package on the remote machine.
       - If :// in the path, ansible will attempt to download deb before installing. (Version added 2.1)
       - Requires the C(xz-utils) package to extract the control file of the deb package to install.
     type: path
     required: false
     version_added: "1.6"
  autoremove:
    description:
      - If C(true), remove unused dependency packages for all module states except I(build-dep). It can also be used as the only option.
      - Previous to version 2.4, autoclean was also an alias for autoremove, now it is its own separate command. See documentation for further information.
    type: bool
    default: 'no'
    version_added: "2.1"
  autoclean:
    description:
      - If C(true), cleans the local repository of retrieved package files that can no longer be downloaded.
    type: bool
    default: 'no'
    version_added: "2.4"
  policy_rc_d:
    description:
      - Force the exit code of /usr/sbin/policy-rc.d.
      - For example, if I(policy_rc_d=101) the installed package will not trigger a service start.
      - If /usr/sbin/policy-rc.d already exists, it is backed up and restored after the package installation.
      - If C(null), the /usr/sbin/policy-rc.d isn't created/changed.
    type: int
    default: null
    version_added: "2.8"
  only_upgrade:
    description:
      - Only upgrade a package if it is already installed.
    type: bool
    default: 'no'
    version_added: "2.1"
  fail_on_autoremove:
    description:
      - 'Corresponds to the C(--no-remove) option for C(apt).'
      - 'If C(true), it is ensured that no packages will be removed or the task will fail.'
      - 'C(fail_on_autoremove) is only supported with state except C(absent)'
    type: bool
    default: 'no'
    version_added: "2.11"
  force_apt_get:
    description:
      - Force usage of apt-get instead of aptitude
    type: bool
    default: 'no'
    version_added: "2.4"
  lock_timeout:
    description:
      - How many seconds will this action wait to acquire a lock on the apt db.
      - Sometimes there is a transitory lock and this will retry at least until timeout is hit.
    type: int
    default: 60
    version_added: "2.12"
requirements:
   - python-apt (python 2)
   - python3-apt (python 3)
   - aptitude (before 2.4)
author: "Matthew Williams (@mgwilliams)"
extends_documentation_fragment: action_common_attributes
attributes:
    check_mode:
        support: full
    diff_mode:
        support: full
    platform:
        platforms: debian
notes:
   - Three of the upgrade modes (C(full), C(safe) and its alias C(true)) required C(aptitude) up to 2.3, since 2.4 C(apt-get) is used as a fall-back.
   - In most cases, packages installed with apt will start newly installed services by default. Most distributions have mechanisms to avoid this.
     For example when installing Postgresql-9.5 in Debian 9, creating an excutable shell script (/usr/sbin/policy-rc.d) that throws
     a return code of 101 will stop Postgresql 9.5 starting up after install. Remove the file or remove its execute permission afterwards.
   - The apt-get commandline supports implicit regex matches here but we do not because it can let typos through easier
     (If you typo C(foo) as C(fo) apt-get would install packages that have "fo" in their name with a warning and a prompt for the user.
     Since we don't have warnings and prompts before installing we disallow this.Use an explicit fnmatch pattern if you want wildcarding)
   - When used with a C(loop:) each package will be processed individually, it is much more efficient to pass the list directly to the I(name) option.
   - When C(default_release) is used, an implicit priority of 990 is used. This is the same behavior as C(apt-get -t).
   - When an exact version is specified, an implicit priority of 1001 is used.
a

- name: Install apache httpd  (state=present is optional)
  ansible.builtin.apt:
    name: apache2
    state: present

- name: Update repositories cache and install "foo" package
  ansible.builtin.apt:
    name: foo
    update_cache: yes

- name: Remove "foo" package
  ansible.builtin.apt:
    name: foo
    state: absent

- name: Install the package "foo"
  ansible.builtin.apt:
    name: foo

- name: Install a list of packages
  ansible.builtin.apt:
    pkg:
    - foo
    - foo-tools

- name: Install the version '1.00' of package "foo"
  ansible.builtin.apt:
    name: foo=1.00

- name: Update the repository cache and update package "nginx" to latest version using default release squeeze-backport
  ansible.builtin.apt:
    name: nginx
    state: latest
    default_release: squeeze-backports
    update_cache: yes

- name: Install the version '1.18.0' of package "nginx" and allow potential downgrades
  ansible.builtin.apt:
    name: nginx=1.18.0
    state: present
    allow_downgrade: yes

- name: Install zfsutils-linux with ensuring conflicted packages (e.g. zfs-fuse) will not be removed.
  ansible.builtin.apt:
    name: zfsutils-linux
    state: latest
    fail_on_autoremove: yes

- name: Install latest version of "openjdk-6-jdk" ignoring "install-recommends"
  ansible.builtin.apt:
    name: openjdk-6-jdk
    state: latest
    install_recommends: no

- name: Update all packages to their latest version
  ansible.builtin.apt:
    name: "*"
    state: latest

- name: Upgrade the OS (apt-get dist-upgrade)
  ansible.builtin.apt:
    upgrade: dist

- name: Run the equivalent of "apt-get update" as a separate step
  ansible.builtin.apt:
    update_cache: yes

- name: Only run "update_cache=yes" if the last one is more than 3600 seconds ago
  ansible.builtin.apt:
    update_cache: yes
    cache_valid_time: 3600

- name: Pass options to dpkg on run
  ansible.builtin.apt:
    upgrade: dist
    update_cache: yes
    dpkg_options: 'force-confold,force-confdef'

- name: Install a .deb package
  ansible.builtin.apt:
    deb: /tmp/mypackage.deb

- name: Install the build dependencies for package "foo"
  ansible.builtin.apt:
    pkg: foo
    state: build-dep

- name: Install a .deb package from the internet
  ansible.builtin.apt:
    deb: https://example.com/python-ppq_0.1-1_all.deb

- name: Remove useless packages from the cache
  ansible.builtin.apt:
    autoclean: yes

- name: Remove dependencies that are no longer required
  ansible.builtin.apt:
    autoremove: yes

- name: Run the equivalent of "apt-get clean" as a separate step
  apt:
    clean: yes
aP
cache_updated:
    description: if the cache was updated or not
    returned: success, in some cases
    type: bool
    sample: True
cache_update_time:
    description: time of the last cache update (0 if unknown)
    returned: success, in some cases
    type: int
    sample: 1425828348000
stdout:
    description: output from apt
    returned: success, when needed
    type: str
    sample: |-
        Reading package lists...
        Building dependency tree...
        Reading state information...
        The following extra packages will be installed:
          apache2-bin ...
stderr:
    description: error output from apt
    returned: success, when needed
    type: str
    sample: "AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to ..."
N�ignorezapt API not stable yet)�
AnsibleModule)�get_best_parsable_locale)�
has_respawned�probe_interpreters_for_module�respawn_module)�	to_native�to_text)�PY3�string_types)�
fetch_filezforce-confdef,force-confoldz
0 upgraded, 0 newly installedz'
0 packages upgraded, 0 newly installedz/var/lib/apt/listsz*/var/lib/apt/periodic/update-success-stampzInvalid operationz8Usage: apt-mark [options] {markauto|unmarkauto} packagesz&The following packages will be REMOVEDzDel )�
autoremove�	autocleanFTc�$�eZdZdZd�Zd�Zd�ZdS)�	PolicyRcDa
    This class is a context manager for the /usr/sbin/policy-rc.d file.
    It allow the user to prevent dpkg to start the corresponding service when installing
    a package.
    https://people.debian.org/~hmh/invokerc.d-policyrc.d-specification.txt
    c��||_|jjd�dStj�d��rtjd���|_dSd|_dS)N�policy_rc_d�/usr/sbin/policy-rc.d�ansible)�prefix)�m�params�os�path�exists�tempfile�mkdtemp�
backup_dir)�self�modules  �8/usr/lib/python3.11/site-packages/ansible/modules/apt.py�__init__zPolicyRcD.__init__�s\������6�=��'�/��F�
�7�>�>�1�2�2�	#�&�.�i�@�@�@�D�O�O�O�"�D�O�O�O�c��|jjd�dS|jrO	tjd|j��n3#t
$r&|j�d|jz���YnwxYw	tdd��5}|�d|jjdz��ddd��n#1swxYwYtj
dd��dS#t
$r|j�d	���YdSwxYw)
�d
        This method will be called when we enter the context, before we call `apt-get …`
        rNrz(Fail to move /usr/sbin/policy-rc.d to %s��msg�wz#!/bin/sh
exit %d
i�z/Failed to create or chmod /usr/sbin/policy-rc.d)rrr!�shutil�move�	Exception�	fail_json�open�writer�chmod)r"rs  r$�	__enter__zPolicyRcD.__enter__�s����6�=��'�/��F��?�	c�
c���3�T�_�E�E�E�E���
c�
c�
c��� � �%O�RV�Ra�%a� �b�b�b�b�b�
c����	T��-�s�3�3�
Y�{��!�!�"8�4�6�=��;W�"W�X�X�X�
Y�
Y�
Y�
Y�
Y�
Y�
Y�
Y�
Y�
Y�
Y����
Y�
Y�
Y�
Y�
�H�,�f�5�5�5�5�5���	T�	T�	T��F���!R��S�S�S�S�S�S�	T���sE�8�-A(�'A(�,C�<)B1�%C�1B5�5C�8B5�9C�%C<�;C<c�
�|jjd�dS|jr�	tjt
j�|jd��d��tj|j��dS#t$rE|j�
dt
j�|jd��z���YdSwxYw	tjd��dS#t$r|j�
d���YdSwxYw)r(rNzpolicy-rc.drz-Fail to move back %s to /usr/sbin/policy-rc.dr)zAFail to remove /usr/sbin/policy-rc.d (after package manipulation))rrr!r,r-rr�join�rmdirr.r/�remove)r"�type�value�	tracebacks    r$�__exit__zPolicyRcD.__exit__�s:���6�=��'�/��F��?�	j�
U���B�G�L�L���-�H�H�3�5�5�5�����)�)�)�)�)���
U�
U�
U��� � �%T�')�w�|�|�D�O�]�'S�'S�&T� �U�U�U�U�U�U�
U����
j��	�1�2�2�2�2�2���
j�
j�
j��� � �%h� �i�i�i�i�i�i�
j���s%�AA0�0AB?�>B?�C�%D�DN)�__name__�
__module__�__qualname__�__doc__r%r3r;�r&r$rr�sS��������#�#�#� T�T�T�2j�j�j�j�jr&rc�n�tjd|d��}t|��dkr|S|dddfS)Nz(>?=)�r)�re�split�len)�pkgspec�partss  r$�
package_splitrH�s:���H�X�w��*�*�E�
�5�z�z�A�~�~�����8�T�4��r&c�x�	tj||��S#t$rtj||��cYSwxYw)N)�apt_pkg�version_compare�AttributeError�VersionCompare)�version�
other_versions  r$�package_version_comparerP�sN��>��&�w�
�>�>�>���>�>�>��%�g�}�=�=�=�=�=�>���s��9�9c��tj|��}|�tj�d����|�tj�d����|r|�d||d��|dkr|�d||d��||}|�|��}|sdS|dkrtj|j	|��sdS|j	S)NzDir::Etc::preferenceszDir::Etc::preferencesparts�Releasei��=�Versioni�)
rJ�Policy�read_pinfile�config�	find_file�read_pindir�
create_pin�get_candidate_ver�fnmatch�ver_str)�pkgname�version_cmprN�release�cache�policy�pkg�pkgvers        r$�package_best_matchre�s���
�^�E�
"�
"�F�
�����0�0�1H�I�I�J�J�J�
���w�~�/�/�0L�M�M�N�N�N��<����)�W�g�s�;�;�;��c���	���)�W�g�t�<�<�<�
��.�C�
�
%�
%�c�
*�
*�F����t��c���'�/�&�.�'�"J�"J���t��>�r&c
�P�	||}|j|}n�#t$r�|dkr�	|�|��}	|	r]|�|��rEt	|	��dkr2|	d}
t||
j||||d���\}}}
}|r|||
|fcYSYdS|�d|z���n#t$rYYdSwxYwYdSYnwxYw	t	|j	��dk}n#t$rd	}Ynt$rd
}YnwxYw	|jtj
k}n0#t$r#	|j}n#t$r
|j}YnwxYwYnwxYwt!|||||j��}d
}d}
|r�	|jj}n#t$r
|j}YnwxYw|dkr5t)j||��}|r||krt)j||��r|}
nR|d
kr=tj||��dk}|r!||krtj||��dkr|}
nd	}|r||kr|}
n|}
|||
|fS)aR
    :return: A tuple of (installed, installed_version, version_installable, has_files). *installed* indicates whether
    the package (regardless of version) is installed. *installed_version* indicates whether the installed package
    matches the provided version criteria. *version_installable* provides the latest matching version that can be
    installed. In the case of virtual packages where we can't determine an applicable match, True is returned.
    *has_files* indicates whether the package has files on the filesystem (even if not installed, meaning a purge is
    required).
    �installrBr��state)FFTFz%No package matching '%s' is availabler))FFNFTFNrSz>=)�_cache�KeyError�get_providing_packages�is_virtual_packagerE�package_status�namer/rL�installed_files�UnicodeDecodeError�
current_staterJ�CURSTATE_INSTALLED�is_installed�isInstalledre�	installedrN�installedVersionr\rK)rr^r_rN�default_releaserarirc�ll_pkg�provided_packages�packagerv�installed_version�version_installable�	has_files�package_is_installed�version_best�version_is_installeds                  r$rnrnsg�� -�
�G�n����g�&�����-�-�-��I���
1�$)�$@�$@��$I�$I�!�$�
5��/�/��8�8�`�S�AR�=S�=S�WX�=X�=X�"3�A�"6��*�1�g�l�K��Ra�ch�py�z�z�z�U�	�#4�6I�9�$�`�#,�.?�AT�V_�#_�_�_�_�5�4�4���� G�'� Q��R�R�R�R��!�
1�
1�
1�1�0�0�0�
1����
-�,�,�
S�R�'-����4���+�,�,�q�0�	�	�������	�	�	������	�	�	�����3�%�3�w�7Q�Q�����3�3�3�	3�#&�#3� � ���	3�	3�	3�#&�?� � � �	3������	3����&�g�{�G�_�V[�Vb�c�c�L� �����+�	5� #�
� 5�����	5�	5�	5� #� 4����	5�����#���#*�?�3D�g�#N�#N� ��
3� 1�\� A� A�g�o�Vb�dk�Fl�Fl� A�&2�#��
�D�
 �
 �#*�#:�;L�g�#V�#V�Z[�#[� ��
3� 1�\� A� A�g�F]�^j�ls�Ft�Ft�xy�Fy�Fy�&2�#��#'� ��
3� 1�\� A� A�&2�#��*���!5�7J�I�U�Us���C�A.B7�C�B7�6C�7
C�C�C�C�C�C,�,D�:D�D�D"�"
E�-D5�4E�5E	�E�E	�	E�E�1E>�>F�Fc�r�|�d��}d}|D]
}|�d|�d�}�|���S)N�,�z -o "Dpkg::Options::=--�")rD�strip)�dpkg_options_compressed�options_list�dpkg_options�dpkg_options    r$�expand_dpkg_optionsr�WsQ��*�0�0��5�5�L��L�#�5�5��&�,�,����5��������r&c�b�g}|�r)|D�]%}t|t��s&|�dt|��z���t	|��\}}}td���|��r�d|vr"	|}	n@#t$rd�|D��x}	}Yn&wxYw	|
}	n#t$rd�|D��x}	}
YnwxYwtj	|	|��}|s'|�dt|��z�����|�|����|�|����'|S)Nz9Invalid type for package name, expected string but got %sr)z*?[]!�:c�.�g|]}d|jv�|j��S)r��ro��.0rcs  r$�
<listcomp>z1expand_pkgspec_from_fnmatches.<locals>.<listcomp>{s)��:l�:l�:l��X[�cf�ck�Xk�Xk�3�8�Xk�Xk�Xkr&c��g|]	}|j��
Sr@r�r�s  r$r�z1expand_pkgspec_from_fnmatches.<locals>.<listcomp>�s��:U�:U�:U��3�8�:U�:U�:Ur&z%No package(s) matching '%s' available)
�
isinstancerr/r8rH�	frozenset�intersection�	NameErrorr\�filterr
�extend�append)rrFra�new_pkgspec�pkgspec_pattern�pkgname_patternr_rN�_non_multiarch�pkg_name_cache�_all_pkg_names�matchess            r$�expand_pkgspec_from_fnmatchesr�`s����K��!4�&� 	4� 	4�O��o�|�<�<�
u���� [�^b�cr�^s�^s� s��t�t�t�4A�/�4R�4R�1�O�[�'���!�!�.�.��?�?�
4��o�-�-�m�)7����$�m�m�m�:l�:l�u�:l�:l�:l�l�����m����V�)7����$�V�V�V�:U�:U�u�:U�:U�:U�U�����V����"�.���I�I���0��K�K�$K�g�Ve�Nf�Nf�$f�K�g�g�g�g��&�&�w�/�/�/�/��"�"�?�3�3�3�3��s$�B�B�B�"B%�%C�?Cc���t|�����}	|�d��}n9#t$r,	|�d��}n#t$rd}YnwxYwYnwxYw	t	d�t|��D����}n#t$rt|��}YnwxYw|dz
}|dz
}dd�|||���iS)NzResolving dependencies...zReading state information...���c3�JK�|]\}}tjd|���|V��dS)z[0-9]+ (packages )?upgradedN)rC�match)r��i�items   r$�	<genexpr>zparse_diff.<locals>.<genexpr>�s9����j�j�g�a��B�H�Eb�dh�<i�<i�j��j�j�j�j�j�jr&rB�prepared�
)	r�
splitlines�index�
ValueError�next�	enumerate�
StopIterationrEr5)�output�diff�
diff_start�diff_ends    r$�
parse_diffr��s���V���'�'�)�)�D�	��Z�Z� ;�<�<�
�
������	����$B�C�C�J�J���	�	�	��J�J�J�	������	������j�j��4���j�j�j�j�j���������t�9�9���������!�O�J���M�H���	�	�$�z�(�':�";�<�<�=�=sE�9�
A/�A�A/�A)�&A/�(A)�)A/�.A/�3&B�B6�5B6c��|sdS|�d��}|�|�d��dS|�dd�|����}|�|��\}}}t|vs	t
|vr3|�dd�|����}|�|��\}}}|dkr!|�d|�d|��|||�	��dSdS)
Nzapt-markzMCould not find apt-mark binary, not marking package(s) as manually installed.z manual � z unmarkauto r�'�
' failed: �r*�stdout�stderr�rc)�get_bin_path�warnr5�run_command�APT_MARK_INVALID_OP�APT_MARK_INVALID_OP_DEB6r/)r�packages�apt_mark_cmd_path�cmdr��out�errs       r$�mark_installed_manuallyr��s���������z�2�2��� �	���^�_�_�_���-�-�-�s�x�x��/A�/A�/A�
B�C��=�=��%�%�L�B��S��c�!�!�%=��%D�%D�$5�$5�$5�s�x�x��7I�7I�7I�J���}�}�S�)�)���C��	�Q�w�w�	����S�S�S�#�#�6�s�3�SU��V�V�V�V�V��wr&c�\�g}d}t|||��}g}|D�]}|r|�d|z���t|��\}}}|�|��t||||||d���\}}}}|s|r�f|s|sd}t	d|z���}||fcS|ra|s|r|s|sY|dur|�d	|�d
|�d	�����|r|�d	|�d
|�d	�����|�d|z����|r$|r"|d
kr|�d	|�d
|�d	�����d�|��}|�r=|rd}nd}|jrd
}nd}|
rd}
nd}
|rd}nd}|rd}nd}|	rd}	nd}	|rt�d|�d|�d|	�d|�d|�d|�d|��}n!t�d|�d|�d|	�d|�d|
�d|�d|�d|��}|r	|d|�d	�z
}|dur|dz
}n	|dur|dz
}|
r|dz
}|r|dz
}|r|dz
}t|��5|�	|��\} }!}"ddd��n#1swxYwY|j
rt|!��}#ni}#d}d}$|r	t|!v}$t	|$|!|"|#���}| rd}t	d	|�d|"��|!|"| ���}nd}t	d���}|s|jst||��||fS)Nr��'%s'rgrhFz*no available installation candidate for %sr)Tr�rSr��--force-yes�
--simulate�
--auto-remove�--no-removez--only-upgradez--fix-broken� -y z build-dep z	 install � -t 'z -o APT::Install-Recommends=noz -o APT::Install-Recommends=yesz --allow-unauthenticatedz --allow-downgradesz --allow-change-held-packages��changedr�r�r�r�r��r�)r�r�rHrn�dictr5�
check_mode�APT_GET_CMDrr��_diffr��APT_GET_ZEROr�)%rrFra�upgraderx�install_recommends�forcer��	build_dep�fixedr�fail_on_autoremove�only_upgrade�allow_unauthenticated�allow_downgrade�allow_change_held_packages�pkg_listr��
package_namesr{ror_rNrvr|r}r~�status�data�	force_yes�	check_argr�r�r�r�r�r�s%                                     r$rgrg�s��
�H��H�+�A�w��>�>�G��M��"9�"9���	��O�O�F�W�,�-�-�-��%2�7�%;�%;�"��k�7����T�"�"�"�GU�VW�Y]�_j�ls�vE�GL�T]�H^�H^�H^�D�	�$�&9�9��	�\�	�
� �	"�)<�	"��F��H�7�R�S�S�S�D��D�>�!�!�!��	9��	9�<�	9�G�	9�[l�	9�"�$�.�.�����T�T�T�3F�3F�3F� G�H�H�H�H��
/�����T�T�T�7�7�7� ;�<�<�<�<������
�.�.�.�.�
�	9�#6�	9�;�#�;M�;M�
�O�O�O����w�w�w�7�8�8�8���x�x��!�!�H��J#��	�%�I�I��I��<�	�$�I�I��I��	�(�J�J��J��	$�!.���!#���	�+�L�L��L��	�"�E�E��E��	C�<G�K�K����Wc�Wc�Wc�ej�ej�ej�lu�lu�lu�xJ�xJ�xJ�LU�LU�LU�W_�W_�`�C�C��;�;����l�l�l�E�E�E�9�9�9�j�j�j�Zl�Zl�Zl�nw�nw�nw�zB�zB�C�C��	3��C����2�2�C���&�&��3�3�C�C�
�4�
'�
'��4�4�C�!�	.��-�-�C��	)��(�(�C�%�	3��2�2�C�
�q�\�\�	.�	.��=�=��-�-�L�B��S�	.�	.�	.�	.�	.�	.�	.�	.�	.�	.�	.����	.�	.�	.�	.�
�7�	��c�?�?�D�D��D������	.�"�#�-�G��G�C��$�G�G�G��
�	[��F��4����c�c�:�3�s�WY�Z�Z�Z�D�����E�"�"�"���2�Q�\�2���=�1�1�1��D�>�s�5H�H�"HrTc��|�dd��}|d|�d|��z}|�|��\}}}|dkr|�d|z||���t|���d��S)	N�dpkgTz	 --field r�r�	%s failed�r*r�r�r�)r�r�r/rr�)r�deb_file�field�cmd_dpkgr�r�r�r�s        r$�get_field_of_debr�;s����~�~�f�d�+�+�H�
�(����5�5�9�
9�C����s�+�+��B���	�Q�w�w�	����c�)�&���H�H�H��V���"�"�4�(�(�(r&c

�@�d}
g}g}|�d��D�]�}
	tj�|
tj�����}t||
d��}t||
d��}t
td��r=ttj	����dkrt||
d��}|�d	|��}n|}	tj��|}|j
j}t||��d
kr��n#t$rYnwxYw|���s)|sd|jvr|rn|�|j���|�|j��n=#t$r0}|�d
t'|��z���Yd}~nd}~wwxYw|�|
�����i}|rMt+||||||||t-|	����	�	\}}|s
|jd i|��|�dd��}
|�r5d�d�|	�d��D����}|jr|dz
}|r|dz
}d|�dd�|����}t5|��5|�|��\}}}ddd��n#1swxYwYd|vr|d|z}n|}d|vr |d}d|vr|dxxd|zz
cc<nt9|��}d|vr|d|z}n|}|d
kr|�d|||���dS|�d|z||���dS|�|
|�dd��|�dd��|�dd�����dS)!NFr�)ra�PackagerT�get_architecturesrB�Architecturer�rz
later versionr)zUnable to install package: %s)	rrFrar�r�r�r�r�r�r�r�c��g|]}d|z��S)z--%sr@)r��xs  r$r�zinstall_deb.<locals>.<listcomp>�s��H�H�H�1�F�Q�J�H�H�Hr&z --simulatez --force-allzdpkg z -i r�r�r�z

r�Tr�r�r�r�r@)rD�apt�debfile�
DebPackage�Cacher��hasattrrJrEr�rvrNrPr.�check�_failure_stringr/r��missing_depsrr�rgr��getr5r�rr�r��	exit_json) r�debsrar�r�r�r�r�r�r�r��deps_to_install�pkgs_to_installr�rc�pkg_name�pkg_version�pkg_arch�pkg_key�
installed_pkgr|�e�retvals�success�optionsr�r�r�r�r�r�r�s                                 r$�install_debrDs����G��O��O��J�J�s�O�O�")�")��	L��+�(�(������(�E�E�C�'��8�Y�?�?�H�*�1�h�	�B�B�K��w� 3�4�4�
#��W�=V�=X�=X�9Y�9Y�\]�9]�9]�+�A�x��H�H��%-�X�X�x�x�8���"��
� #�	���G� 4�
�$1�$;�$C�!�*�;�8I�J�J�a�O�O��P���
�
�
���
�����9�9�;�;�
9��9�_��0C�C�C��C���K�K�C�$7�K�8�8�8�
�"�"�3�#3�4�4�4�4���	L�	L�	L�
�K�K�;�i��l�l�J�K�K�K�K�K�K�K�K�K�����	L����	���x�(�(�(�(��G��
0�$�q�/��8J�8J�;P�5D�@Z�2E�l�2S�2S�
U�U�U���'��	#��A�K�"�"�'�"�"�"��+�+�i��/�/��� G��(�(�H�H��0B�0B�3�0G�0G�H�H�H�I�I���<�	%��}�$�G��	&��~�%�G��!(���#�(�(�?�*C�*C�*C�D��
�q�\�\�	.�	.��=�=��-�-�L�B��S�	.�	.�	.�	.�	.�	.�	.�	.�	.�	.�	.����	.�	.�	.�	.��w����X�&��,�F�F��F��W����6�?�D��T�!�!��Z� � � �F�S�L�0� � � ���c�?�?�D��w����X�&��,�F�F��F�
��7�7�
�K�K��V�F��K�N�N�N�N�N�
�K�K�K�#�-�f�V�K�L�L�L�L�L�	���G�G�K�K��"�,E�,E�g�k�k�Zb�df�Ng�Ng�nu�ny�ny�{A�CE�oF�oF��	G�	G�	G�	G�	GsO�B(E,�	9D�E,�
D�E,�D�AE,�,
F&�6&F!�!F&�J)�)J-�0J-c
���g}t|||��}|D]N}t|��\}	}
}t||	|
|d|d���\}}
}}|
s|r|r|�d|z���Od�|��}|s|�d���dS|rd}nd}|rd	}nd}|rd
}nd}|jrd}nd}t�d|�d|�d|�d|�d|�d
|��
}t|��5|�	|��\}}}ddd��n#1swxYwY|j
rt|��}ni}|r|�d|�d|��|||���|�d|||���dS)Nr7rhr�r�Fr�r�r��--purger�r�z -q -y z remove z'apt-get remove r�r�Tr�)
r�rHrnr�r5rr�r�rr�r�r�r/)rrFra�purger�r�rr�r{ror_rNrvr|�
upgradabler~r�r�r�r�r�r�r�r�s                        r$r7r7�sX���H�+�A�w��>�>�G��.�.��%2�7�%;�%;�"��k�7�>L�Q�PT�Va�cj�lp�rw�@H�?I�?I�?I�;�	�$�j�)��	.��	.�u�	.��O�O�F�W�,�-�-�-���x�x��!�!�H��"E�	���E��"�"�"�"�"��	�%�I�I��I��	��E�E��E��	�(�J�J��J��<�	�$�I�I��I�5@�[�[�,�,�,�PU�PU�PU�W`�W`�W`�bl�bl�bl�nw�nw�nw�zB�zB�C��
�q�\�\�	.�	.��=�=��-�-�L�B��S�	.�	.�	.�	.�	.�	.�	.�	.�	.�	.�	.����	.�	.�	.�	.�
�7�	��c�?�?�D�D��D�
�	o�
�K�K�K����#�#�N�WZ�cf�km�K�n�n�n�	���D��S�t��D�D�D�D�Ds�D�D	�D	c��|tddg��vrtd|z���|rd}nd}|rd}nd}|jrd}nd}t�d|�d	|�d	|�d	|�d	|��}t	|��5|�|��\}}	}
ddd��n#1swxYwY|jrt|	��}ni}|r|�d
|�d|
��|	|
|���t||	v}|�
||	|
|�
��dS)Nrrz>Expected "autoremove" or "autoclean" cleanup operation, got %sr�r�rr�r�r�z	'apt-get r�r�r�)r��AssertionErrorr�r�rr�r�r�r/�CLEAN_OP_CHANGED_STRr)
rrr��	operationr�r�r�r�r�r�r�r�r�s
             r$�cleanupr�s����	�<��"=�>�>�>�>��]�`i�i�j�j�j���!�	�	��	���������|�� �	�	��	�$/�K�K����u�u�u�i�i�i�QZ�QZ�QZ�\e�\e�
f�C�	�1���*�*��}�}�S�)�)���C��*�*�*�*�*�*�*�*�*�*�*����*�*�*�*�	�w���#�������	�e�	����Y�Y�Y���D�S�Y\�ac��d�d�d�"�9�-��4�G��K�K���C�d�K�C�C�C�C�Cs�'B
�
B�Bc���|�ddg��\}}}|jrt|��}ni}|r|�d||���|r|�d|z||���||fS)N�apt-get�cleanzapt-get clean failed�r*r�r�zapt-get clean failed: %s)r�r�r�r/)r�clean_rc�	clean_out�	clean_err�
clean_diffs     r$�aptcleanr �s���%&�]�]�I�w�3G�%H�%H�"�H�i���w���	�*�*�
�
��
��O�	���.�y�X��N�N�N��_�	���2�Y�>�y�U]��^�^�^��i��r&�yesc
�~�|rd}nd}|jrd}
nd}
d}d}|dks|dkr|r
t}d|z}
n,|dkr|s
t}d}
n|r
t}d|z}
nt}d	}
d
}|r|tkrd}nd}nd}|rd
}nd}|rdnd}|	rdnd}	|� |rt}n|�d���|�|d���}|�d|�d|�d|�d|�d|	�d|
�d|
��}|r	|d|�d�z
}t|��5|�||���\}}}ddd��n#1swxYwY|jrt|��}ni}|r!|�d|�d|
�d|��||���|tkr	t|vs|tkr"t|vr|�d|||���|�d||||���dS)Nr�r�r��dist�fullzdist-upgrade %szfull-upgradezupgrade --with-new-pkgs %szsafe-upgradezR(^Do you want to ignore this warning and proceed anyway\?|^\*\*\*.*\[default=.*\])r�z--assume-yes --allow-untrustedr�z--allow-unauthenticatedz--allow-downgradeszfUnable to find APTITUDE in path. Please make sure to have APTITUDE in path or use 'force_apt_get=True'r)T)�requiredr�r�r�r�)�prompt_regexr�rF�r�r*r�r�)r�r*r�r�r�)r�r��APTITUDE_CMDr/r�rr�r�r�r��
APTITUDE_ZEROr)r�moder�rx�use_apt_getr�rr�r�r�r��apt_cmdr&�upgrade_commandr��apt_cmd_pathr�r�r�r�r�s                     r$r�r�s�����$�
�
��
��|�� �	�	��	��G��L��v�~�~�$�&�.�.�[�.���+�z�:���	
��������(����	q�!�G�:�j�I�O�O�#�G�,�O�p�L����k�!�!�%�I�I�8�I�I��	�� �*�����9N�V�5�5�TV��.=�E�*�*�2�O����	T�!�G�G�
�K�K�S�K�
T�
T�
T��>�>�'�D�>�9�9�L�	�������	�	�����������	�	���	�C��/���_�_�_�.�.��	�1���E�E��}�}�S�|�}�D�D���C��E�E�E�E�E�E�E�E�E�E�E����E�E�E�E�	�w���#�������	�c�	����������#�#�N�WZ�_a��b�b�b��;���<�3�#6�#6�G�|�<S�<S�Xe�il�Xl�Xl�	���E�s�3�s��C�C�C��K�K��#�c�#�D�K�I�I�I�I�Is�3D�D�"Dc��d}tj�t��rtjt��j}nBtj�t��rtjt��j}|S)z�Return mtime of a valid apt cache file.
    Stat the apt cache file and if no cache file is found return 0
    :returns: ``int``
    r)rrr�APT_UPDATE_SUCCESS_STAMP_PATH�stat�st_mtime�APT_LISTS_PATH)�
cache_times r$�get_cache_mtimer5`sc��
�J�	�w�~�~�3�4�4�6��W�:�;�;�D�
�
�	�����	'�	'�6��W�^�,�,�5�
��r&c���t��}tj�|��}tt	j|�������}||fS)z�Return the mtime time stamp and the updated cache time.
    Always retrieve the mtime of the apt cache or set the `cache_mtime`
    variable to 0
    :returns: ``tuple``
    )r5�datetime�
fromtimestamp�int�time�mktime�	timetuple)�cache_mtime�
mtimestamp�updated_cache_times   r$�get_updated_cache_timer@msU��"�#�#�K��"�0�0��=�=�J��T�[��)=�)=�)?�)?�@�@�A�A���)�)�)r&c���d}	tj��}n�#t$r�}dt|�����vr|d}|dkr-|�gd���\}}}|dz
}|dkrn|dk�-|dkr-|�dt|���d||z��|�	��tj��}n#|�t|���
��Yd}~nd}~wwxYw|S)z8Attempt to get the cache object and update till it worksNz/var/lib/apt/lists/r�)r�update�-qrBz<Updating the cache to correct corrupt package lists failed:
r�)r*r�r))r�r��SystemErrorr�lowerr�r/)r#rar
�retriesr��so�ses       r$�	get_cacherJzs<���E�/��	�������/�/�/� �I�a�L�L�$6�$6�$8�$8�8�8��G��A�+�+�%�1�1�2M�2M�2M�N�N���R���1�����7�7��	�A�+�+�
�Q�w�w�� � � �nw�xy�nz�nz�nz�nz�|~�BD�}D�}D�&E�JL� �M�M�M��I�K�K�E�E�����1����.�.�.����������/�����Ls��
C.�CC)�)C.c�.�ttd[idtddgd�����dtddg�	���d
tdd�
���dtdd�
���dtdd�
���dtdd�
���dtddddg����dtd����dtddg�	���dtddg�	���d tdd�
���d!tdgd"�d#�$���d%tdt�
���d&tdd�
���d'tdd�
���d(tdd�
���d)tdd�
���d*tdd�
���d+tdd�
���d,tdd�
���d-tddd.g�/���d0tddgd1��/���d2tdd�
���d3tdd4�
����gd5�ggd6�gd7�8��}t|��}td9d:||||�;��}||_t
�sktrd<nd=}t��r4|�d>�	|tj���?��gd@�}t|dA��}|rt|��|jr|�dB|z�?��|j�d��dur|�dC|z��n1|�dD|z��|�dEdFgd7�G��|�dEdHdI|dJdKgd7�G��t|dA��}|rt|��n4|�d>�	|tj���?��|�dLd��a|�dE��a|j}|d,d7urCt-|��\}}|ds)|d!s!|ds|�d7|||�M��|d!d#krd|d!<|d+}	|	s	t(sd7}	d}
d}|d}|d-}
|d0}|d2}t1|d%��}|d&}|d(}|d'}t3j��|d3z}	t5|��}	|drR	|dt6jdN<n%#t:$r|dt6jdN<YnwxYw|�d�O��tA��\}}d}
|ds	|d�r�tBj!�"��}tCj#|d�P��}||z|k�s*dQ}|j�d
��}|j�d��}tIj%ddR��dSz}tM|��D]w}	|js|�'��nu#tPj)j*$r}tW|��}Yd}~nd}~wwxYwdT|z|z}||kr||z}t3j,|���x|�dU|r|ndVz�?��|�d�O��tA��\}} |js|| krd7}
| }|ds(|d!s |ds|�|
|
|�W��|d }!|d!r$t[||d!|!|d|	||||
|�
�
|drj|ddkr|�dX�?��dY|dvrt]||d��|d<t_||d|||
|||!||d%�Z�
�
|dpd[}"d\�|"D��}#d]|"v}$|dd^k}%|%r8|$r6|#r|�d_�?��t[|d`|!|d|	||||
|�
�
|#r7|#D]4}&|&�0da��dbkr|�dc|&z�?���5|#s8|rtc||d|!d'|�d��|rtc||d|!d&|�d��|ddevr�d}'d}(d})|dd^krd7}'|ddfkrd7}(|ddgkrd7})te||#||'|d||!||(|)|||d*|
||�h��\}*}+|
|+di<||+dj<|*r|jd[i|+��n6|jd[i|+��n(|ddkkrtg||#||d|!||�l��n�#tPj)j4$r@},t3j��|krYd},~,���|�dm|,z�?��Yd},~,n=d},~,wtPj)j*$r#}-|�dn|-z�?��Yd}-~-nd}-~-wwxYw|�do�?����)pNri�str�present)�absent�	build-depr��latestrM)r8�default�choices�update_cache�boolzupdate-cache)r8�aliases�update_cache_retriesr9�)r8rQ�update_cache_retry_max_delay��cache_valid_timerrFr{�listrcro)r8�elementsrU�debr)r8rxzdefault-releaser�zinstall-recommendsr�r�)r#r$�no�safer!r^)r8rRrQr�rrr�rr��
force_apt_getrr�zallow-unauthenticated)r8rQrUr�)zallow-downgrade�allow_downgradeszallow-downgradesr��lock_timeout�<)r]r{r�)rr]r{rSr�T)�
argument_spec�mutually_exclusive�required_one_of�supports_check_mode�noninteractive�critical)�DEBIAN_FRONTEND�DEBIAN_PRIORITY�LANG�LC_ALL�LC_MESSAGES�LC_CTYPEzpython3-aptz
python-aptz+{0} must be installed and visible from {1}.r))z/usr/bin/python3z/usr/bin/python2z/usr/bin/pythonr�zX%s must be installed to use check mode. If run normally this module can auto-install it.z=Auto-installing missing dependency without updating cache: %sz9Updating cache and auto-installing missing dependency: %srrC)�check_rcrgz--no-install-recommendsz-yrD�aptituder'zAPT::Default-Release)�progress)�secondsr�i�g@�@rBzFailed to update apt cache: %szunknown reason)r��
cache_updated�cache_update_timezdeb only supports state=presentz://)r�r�r�r�r�r�r�r@c�B�g|]}|dk�|�����S)�*)r�)r�r{s  r$r�zmain.<locals>.<listcomp>zs&��]�]�]�G�g�Y\�n�n��
�
���n�n�nr&rwrPzKunable to install additional packages when upgrading all installed packagesr!rSrBzinvalid package spec: %s)r�rr�)rPrMrOr�rOr�)
r�rxr�r�r�r�r�rr�r�r�r�r�rtrurN)r�r�rz.Failed to lock apt for exclusive operation: %sz%Could not fetch updated apt files: %szNUnexpected code path taken, we really should have exited before, this is a bug)5rr��DPKG_OPTIONSr�run_command_environ_update�HAS_PYTHON_APTrr	r/�format�sys�
executabler
rr�rrr�r�r�r(r�r rr�r:rJrJrWrL�Configr0r@r7�now�	timedelta�random�randint�rangerCr�ra�FetchFailedExceptionr�sleepr�rr�countrrgr7�LockFailedException).r#�locale�APT_ENV_VARS�apt_pkg_name�interpreters�interpreter�p�aptclean_stdout�aptclean_stderrr+�
updated_cacher?r�r�r�r�r�rr�r�deadlinerar>r�tdeltar�rVrX�	randomize�retryr
�delay�post_cache_update_timer��unfiltered_packagesr��
all_installedrPr{�
state_upgrade�state_builddep�state_fixedrr�lockFailedException�fetchFailedExceptions.                                              r$�mainr��sN
��
��
�
�
��E�9�>s�>s�>s�t�t�t�t�
��6�N�3C�D�D�D�D�
�"&�5�!�!<�!<�!<�!<�
�*.�5�"�)E�)E�)E�)E�	
�
"�u�a�8�8�8�8�
��F�E�2�2�2�2�

��f�u�u�f�o�N�N�N�N�
��&�!�!�!�!�
�!�e�6G�5H�I�I�I�I�
� $��:N�9O�P�P�P�P�
��F�E�2�2�2�2�
��e�-R�-R�-R�\`�a�a�a�a�
��5�,�?�?�?�?�
����7�7�7�7�
����6�6�6�6�
�  $���?�?�?�?�!
�"�%��6�6�6�6�#
�$�6�5�9�9�9�9�%
�&�F�E�:�:�:�:�'
�(�F�E�2�2�2�2�)
�*#'�F�E�Lc�Kd�"e�"e�"e�"e�+
�,!�f�e�FA�FA�FA�B�B�B�B�-
�.(,���'G�'G�'G�'G�/
�0�5�"�5�5�5�5�1
�4:�9�9�:�T�T�T�U� �;���F�F&�f�
-�
-�F��(�"�
����
���L�)5�F�%��5u�),�=�}�}����?�?�	u����!N�!U�!U�Vb�dg�dr�!s�!s��t�t�t�R�R�R��3�L�%�H�H���	(��;�'�'�'���	d����"T�Vb�"c��
d�
d�
d�
�=���^�,�,��5�5��K�K�W�Zf�f�g�g�g�g��K�K�S�Vb�b�c�c�c����	�8�4�t��D�D�D�	���I�y�2K�\�[_�ae�f�qu��v�v�v�4�L�%�H�H���	u�
�;�'�'�'�'�
���!N�!U�!U�Vb�dg�dr�!s�!s��t�t�t��&�&�z�5�9�9�L��%�%�i�0�0�K��
�A���z�T���+3�F�+;�+;�(�����|�	�A�i�L�	��5��	�����#�&�&�	
�
�
�
�	��|�t�����)���O�$�K���|�����M����/�0���5�6���)�*�O�!"�#?�!@��&�q��'8�9�9�L��<��J��/�0���+��I��y�{�{�Q�~�.�.�H�io��&�!�!��a	a��"�#�
*�R�=>�?P�=Q�G�N�#9�:�:��%�R�R�R�=>�?P�=Q�G�N�#9�:�:�:�R�����
�
�D�
�)�)�)�-C�-E�-E�*�J�*�"�M��� �'
�A�&8�$9�'
��'�+�+�-�-��!�+�A�6H�4I�J�J�J��!�F�*�c�1�1��C�+1�=�+<�+<�=S�+T�+T�(�39�=�3D�3D�Ec�3d�3d�0� &��q�$� 7� 7�&� @�I�!&�';�!<�!<�t�t��/�#)�#4�/� %������!�E��"�y�=�/�/�/�"+�A�,�,�C�C�C�C�C�C�����/����!"�U�
�Y� 6�� �#?�?�?�$@�9�$L�E��
�5�)�)�)�)��(�(�-M�X[�Qq�QT�QT�aq�-r�(�s�s�s��J�J��J�-�-�-�9O�9Q�9Q�6�J� 6��(�-�,>�BX�,X�,X�(,�
�)?�&���|��A�i�L���5����$�$� -�&3�*<�%�����'�
�I���|�
����i�L���'�(�� ��&�)�#������x�

t��W�:��*�*��$�$�)J�$�K�K�K��A�e�H�$�$�)�&�!�E�(�;�;�A�e�H��F�A�e�H�e�/A�2G�7Q�,;�"+�@R�ab�cq�ar�t�t�t�t�#$�I�,�"4�"��]�]�7J�]�]�]�H��#6�6�M��w�Z�8�+�F��
�-�
��x��$�$�)v�$�w�w�w������'�(�� ��&�)�#�����
S�'�S�S�G��}�}�S�)�)�A�-�-��(�(�-G�'�-Q�(�R�R�R���
t��s��F�A�g�J�i�;�eq�r�r�r�r��t��F�A�g�J�i�<�fr�s�s�s�s���z�H�H�H� %�
�!&��#���W�:��)�)�$(�M��W�:��,�,�%)�N��W�:��(�(�"&�K�#*����)�$%�&7�$8�'9�#�!-�,�%�)�'9�!"�>�!2�*?�$3�/I�!$�$�$� ���(,9���(�/A��+�,��0�$�F�$�/�/�w�/�/�/�/�$�F�$�/�/�w�/�/�/�/��7��x�'�'��v�x���'�
�)�Zf�s}�~�~�~�~����y�,�	i�	i�	i��y�{�{�X�%�%���������!Q�Tg�!g��h�h�h�h�h�h�h�h������y�-�	a�	a�	a����!H�K_�!_��`�`�`�`�`�`�`�`�����	a����	���m��n�n�n�Siosz�&c3�/S�c3�S'�$c3�&S'�'Cc3�W$�"c3�$X�8X�c3�X�K!c3�3e<�e�$e�e<�e7�7e<�__main__)rT)J�
__future__rrrr8�
__metaclass__�
DOCUMENTATION�EXAMPLES�RETURN�warnings�filterwarnings�
FutureWarningr7r\�	itertoolsrr�rCr,r|rr:�ansible.module_utils.basicr�"ansible.module_utils.common.localer�#ansible.module_utils.common.respawnr	r
r�ansible.module_utils._textrr
�ansible.module_utils.sixrr�ansible.module_utils.urlsrrxr�r)r3r0r�r�r�rrzr��apt.debfilerJ�ImportError�objectrrHrPrernr�r�r�r�rgr�rr7rr r�r5r@rJr�r<r@r&r$�<module>r�s,��A�@�@�@�@�@�@�@�@�@��
�J�
�Xg��R
��:��������":�M�J�J�J�������������	�	�	�	�
�
�
�
�	�	�	�	�
�
�
�
�
�
�
�
���������4�4�4�4�4�4�G�G�G�G�G�G�l�l�l�l�l�l�l�l�l�l�9�9�9�9�9�9�9�9�6�6�6�6�6�6�6�6�0�0�0�0�0�0�,��0��:�
�%�� L��)��U���t�7����������J�J�J������N�N�N��N�N��������C�'�'�'�����Jj�Jj�Jj�Jj�Jj��Jj�Jj�Jj�Z � � �>�>�>����0TV�TV�TV�n � � �,�,�,�^>�>�>�,W�W�W�,(-�d�#�5�,�,�\�:�:��5�U�u�ch�"'��[`�	}�}�}�}�@)�)�)�)�\G�\G�\G�~%*��+�+�L�9�9�e�-E�-E�-E�-E�`�%�4�,�,�\�:�:�#D�#D�#D�#D�L
 �
 �
 �����,�,�\�:�:�u�af�"'�!�	WJ�WJ�WJ�WJ�t
�
�
�	*�	*�	*����.zo�zo�zo�z	�z����D�F�F�F�F�F��s�B*�*	B6�5B6

Youez - 2016 - github.com/yon3zu
LinuXploit