
    Vhlw                        d dl mZ dZdZdZd dlZd dlZd dlmZ d dl	m
Z
 d dlmZmZmZ d d	lmZmZ daead
 Zd Zd Zd Z G d de      Zd Zedk(  r e        yy)    )annotationsa%  
module: dnf5
author: Ansible Core Team
description:
  - Installs, upgrade, removes, and lists packages and groups with the I(dnf5) package manager.
  - "WARNING: The I(dnf5) package manager is still under development and not all features that the existing M(ansible.builtin.dnf) module
    provides are implemented in M(ansible.builtin.dnf5), please consult specific options for more information."
short_description: Manages packages with the I(dnf5) package manager
options:
  name:
    description:
      - "A package name or package specifier with version, like C(name-1.0).
        When using O(state=latest), this can be C(*) which means run: C(dnf -y update).
        You can also pass a url or a local path to an rpm file.
        To operate on several packages this can accept a comma separated string of packages or a list of packages."
      - Comparison operators for package version are valid here C(>), C(<), C(>=), C(<=). Example - C(name >= 1.0).
        Spaces around the operator are required.
      - You can also pass an absolute path for a binary which is provided by the package to install.
        See examples for more information.
    aliases:
        - pkg
    type: list
    elements: str
    default: []
  list:
    description:
      - Various (non-idempotent) commands for usage with C(/usr/bin/ansible) and I(not) playbooks.
        Use M(ansible.builtin.package_facts) instead of the O(list) argument as a best practice.
    type: str
  state:
    description:
      - Whether to install (V(present), V(latest)), or remove (V(absent)) a package.
      - Default is V(None), however in effect the default action is V(present) unless the O(autoremove=true),
        then V(absent) is inferred.
    choices: ['absent', 'present', 'installed', 'removed', 'latest']
    type: str
  enablerepo:
    description:
      - I(Repoid) of repositories to enable for the install/update operation.
        These repos will not persist beyond the transaction.
        When specifying multiple repos, separate them with a C(,).
    type: list
    elements: str
    default: []
  disablerepo:
    description:
      - I(Repoid) of repositories to disable for the install/update operation.
        These repos will not persist beyond the transaction.
        When specifying multiple repos, separate them with a C(,).
    type: list
    elements: str
    default: []
  conf_file:
    description:
      - The remote dnf configuration file to use for the transaction.
    type: str
  disable_gpg_check:
    description:
      - Whether to disable the GPG checking of signatures of packages being
        installed. Has an effect only if O(state) is V(present) or V(latest).
      - This setting affects packages installed from a repository as well as
        "local" packages installed from the filesystem or a URL.
    type: bool
    default: 'no'
  installroot:
    description:
      - Specifies an alternative installroot, relative to which all packages
        will be installed.
    default: "/"
    type: str
  releasever:
    description:
      - Specifies an alternative release from which all packages will be
        installed.
    type: str
  autoremove:
    description:
      - If V(true), removes all "leaf" packages from the system that were originally
        installed as dependencies of user-installed packages but which are no longer
        required by any such package. Should be used alone or when O(state=absent).
    type: bool
    default: "no"
  exclude:
    description:
      - Package name(s) to exclude when O(state=present) or O(state=latest). This can be a
        list or a comma separated string.
    type: list
    elements: str
    default: []
  skip_broken:
    description:
      - Skip all unavailable packages or packages with broken dependencies
        without raising an error. Equivalent to passing the C(--skip-broken) option.
    type: bool
    default: "no"
  update_cache:
    description:
      - Force dnf to check if cache is out of date and redownload if needed.
        Has an effect only if O(state=present) or O(state=latest).
    type: bool
    default: "no"
    aliases: [ expire-cache ]
  update_only:
    description:
      - When using latest, only update installed packages. Do not install packages.
      - Has an effect only if O(state=present) or O(state=latest).
    default: "no"
    type: bool
  security:
    description:
      - If set to V(true), and O(state=latest) then only installs updates that have been marked security related.
      - Note that, similar to C(dnf upgrade-minimal), this filter applies to dependencies as well.
    type: bool
    default: "no"
  bugfix:
    description:
      - If set to V(true), and O(state=latest) then only installs updates that have been marked bugfix related.
      - Note that, similar to C(dnf upgrade-minimal), this filter applies to dependencies as well.
    default: "no"
    type: bool
  enable_plugin:
    description:
      - I(Plugin) name to enable for the install/update operation.
        The enabled plugin will not persist beyond the transaction.
      - O(disable_plugin) takes precedence in case a plugin is listed in both O(enable_plugin) and O(disable_plugin).
      - Requires python3-libdnf5 5.2.0.0+.
    type: list
    elements: str
    default: []
  disable_plugin:
    description:
      - I(Plugin) name to disable for the install/update operation.
        The disabled plugins will not persist beyond the transaction.
      - O(disable_plugin) takes precedence in case a plugin is listed in both O(enable_plugin) and O(disable_plugin).
      - Requires python3-libdnf5 5.2.0.0+.
    type: list
    default: []
    elements: str
  disable_excludes:
    description:
      - Disable the excludes defined in DNF config files.
      - If set to V(all), disables all excludes.
      - If set to V(main), disable excludes defined in C([main]) in C(dnf.conf).
      - If set to V(repoid), disable excludes defined for given repo id.
    type: str
  validate_certs:
    description:
      - This is effectively a no-op in the dnf5 module as dnf5 itself handles downloading a https url as the source of the rpm,
        but is an accepted parameter for feature parity/compatibility with the M(ansible.builtin.dnf) module.
    type: bool
    default: "yes"
  sslverify:
    description:
      - Disables SSL validation of the repository server for this transaction.
      - This should be set to V(false) if one of the configured repositories is using an untrusted or self-signed certificate.
    type: bool
    default: "yes"
  allow_downgrade:
    description:
      - Specify if the named package and version is allowed to downgrade
        a maybe already installed higher version of that package.
        Note that setting O(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 (because dependencies between the downgraded
        package and others can cause changes to the packages which were
        in the earlier transaction).
    type: bool
    default: "no"
  install_repoquery:
    description:
      - This is effectively a no-op in DNF as it is not needed with DNF.
      - This option is deprecated and will be removed in ansible-core 2.20.
    type: bool
    default: "yes"
  download_only:
    description:
      - Only download the packages, do not install them.
    default: "no"
    type: bool
  lock_timeout:
    description:
      - This is currently a no-op as dnf5 does not provide an option to configure it.
      - Amount of time to wait for the dnf lockfile to be freed.
    required: false
    default: 30
    type: int
  install_weak_deps:
    description:
      - Will also install all packages linked by a weak dependency relation.
    type: bool
    default: "yes"
  download_dir:
    description:
      - Specifies an alternate directory to store packages.
      - Has an effect only if O(download_only) is specified.
    type: str
  allowerasing:
    description:
      - If V(true) it allows  erasing  of  installed  packages to resolve dependencies.
    required: false
    type: bool
    default: "no"
  nobest:
    description:
      - This is the opposite of the O(best) option kept for backwards compatibility.
      - Since ansible-core 2.17 the default value is set by the operating system distribution.
    required: false
    type: bool
  best:
    description:
      - When set to V(true), either use a package with the highest version available or fail.
      - When set to V(false), if the latest version cannot be installed go with the lower version.
      - Default is set by the operating system distribution.
    required: false
    type: bool
    version_added: "2.17"
  cacheonly:
    description:
      - Tells dnf to run entirely from system cache; does not download or update metadata.
    type: bool
    default: "no"
extends_documentation_fragment:
- action_common_attributes
- action_common_attributes.flow
attributes:
    action:
        details: dnf5 has 2 action plugins that use it under the hood, M(ansible.builtin.dnf) and M(ansible.builtin.package).
        support: partial
    async:
        support: none
    bypass_host_loop:
        support: none
    check_mode:
        support: full
    diff_mode:
        support: full
    platform:
        platforms: rhel
requirements:
  - "python3-libdnf5"
version_added: 2.15
a  
- name: Install the latest version of Apache
  ansible.builtin.dnf5:
    name: httpd
    state: latest

- name: Install Apache >= 2.4
  ansible.builtin.dnf5:
    name: httpd >= 2.4
    state: present

- name: Install the latest version of Apache and MariaDB
  ansible.builtin.dnf5:
    name:
      - httpd
      - mariadb-server
    state: latest

- name: Remove the Apache package
  ansible.builtin.dnf5:
    name: httpd
    state: absent

- name: Install the latest version of Apache from the testing repo
  ansible.builtin.dnf5:
    name: httpd
    enablerepo: testing
    state: present

- name: Upgrade all packages
  ansible.builtin.dnf5:
    name: "*"
    state: latest

- name: Update the webserver, depending on which is installed on the system. Do not install the other one
  ansible.builtin.dnf5:
    name:
      - httpd
      - nginx
    state: latest
    update_only: yes

- name: Install the nginx rpm from a remote repo
  ansible.builtin.dnf5:
    name: 'http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm'
    state: present

- name: Install nginx rpm from a local file
  ansible.builtin.dnf5:
    name: /usr/local/src/nginx-release-centos-6-0.el6.ngx.noarch.rpm
    state: present

- name: Install Package based upon the file it provides
  ansible.builtin.dnf5:
    name: /usr/bin/cowsay
    state: present

- name: Install the 'Development tools' package group
  ansible.builtin.dnf5:
    name: '@Development tools'
    state: present

- name: Autoremove unneeded packages installed as dependencies
  ansible.builtin.dnf5:
    autoremove: yes

- name: Uninstall httpd but keep its dependencies
  ansible.builtin.dnf5:
    name: httpd
    state: absent
    autoremove: no
a  
msg:
  description: Additional information about the result
  returned: always
  type: str
  sample: "Nothing to do"
results:
  description: A list of the dnf transaction results
  returned: success
  type: list
  sample: ["Installed: lsof-4.94.0-4.fc37.x86_64"]
failures:
  description: A list of the dnf transaction failures
  returned: failure
  type: list
  sample: ["Argument 'lsof' matches only excluded packages."]
rc:
  description: For compatibility, 0 for success, 1 for failure
  returned: always
  type: int
  sample: 0
N)AnsibleModule)get_best_parsable_locale)has_respawnedprobe_interpreters_for_modulerespawn_module)YumDnfyumdnf_argument_specc                   t         j                  j                         }	 |j                  d       |j	                  d       |j                  d       t         j                  j                  |       }|j                          |j                  ||d      \  }}t        d      t        fd|D              rt         j                  j                  |       }|j!                          |j                  ||d       |D ch c]  }|j#                          c}|D ch c]  }|j#                          c}z
   S |S # t        $ r d|_        d|_        d|_	        Y w xY wc c}w c c}w )NTFz*[?c              3  :   K   | ]  }t        |      z    y wN)set).0charglob_patternss     D/home/dcms/DCMS/lib/python3.12/site-packages/ansible/modules/dnf5.py	<genexpr>zis_installed.<locals>.<genexpr>  s     
63t9}$
6s   )libdnf5baseResolveSpecSettingsset_group_with_nameset_with_binariesset_with_providesAttributeErrorgroup_with_namewith_binarieswith_providesrpmPackageQueryfilter_installedresolve_pkg_specr   anyfilter_availableget_name)	r   specsettingsinstalled_querymatchnevraavailable_querypr   s	           @r   is_installedr,   i  s:   ||//1H'$$T* 	""5) 	""5) kk..t4O$$&"33D(DILE5 JM

6
66!++2248((*((x> $33aQZZ\3_6]qzz|6]]
 	
 -  '#' !&!&	'& 46]s   3D: >EE$:EEc                ,   d|v r*|j                  d      d   }|j                  d      r|d d }	 t        t        t        j
                  j                  j                  |                  }|j                         }|syt        j
                  j                  |       }|j                          |j                  |j                         g       |j                          	 t!        |      d   }t        j
                  j                  |       }|j                  |j                         g       |j%                  |g       |j'                         }|r|j)                  |g       |j+                         }|r|j-                  |g       |j                          	 t!        |      d   }	t        j
                  j/                  |j1                         |	j1                               dk(  S # t        t        f$ r Y yw xY w# t"        $ r Y yw xY w# t"        $ r Y yw xY w)N/z.rpmF   )splitendswithnextiterr   r   NevraparseLIBDNF5_ERRORStopIterationget_versionr   r    filter_namer$   filter_latest_evrlist
IndexErrorfilter_versionget_releasefilter_release	get_epochfilter_epoch	rpmvercmpget_evr)
r   r%   
spec_nevraspec_version	installedinstalled_packagetargetspec_release
spec_epochtarget_packages
             r   is_newer_version_installedrN     s   
d{zz#r"== 9D$w{{0066t<=>
 ))+L((.I :..012! OB/ [[%%d+F

++-./
<.)))+L|n-%%'JZL)
fb)
 ;;  !2!:!:!<n>T>T>VW[\\\A =)     s5   ;G# G8 H #G54G58	HH	HHc           
     4   | j                         | j                         | j                         | j                         t        | j	                               | j                         | j                         | j                         | j                         rdd	S dd	S )NrH   	available)	r)   envranamearchepochreleaseversionrepoyumstate)		get_nevrar$   get_archstrrB   r@   r:   get_repo_idr,   )packages    r   package_to_dictr^     s    ""$""$  "  "W&&()&&(&&(##%#*#7#7#9K
 
 @K
 
    c              #     K   t         j                  j                  |       }|j                          |j	                          |E d {    y 7 wr   )r   r   r   r    filter_unneeded)r   querys     r   get_unneeded_pkgsrc     s;     KK$$T*E		s   AAAAc                  0     e Zd Z fdZd Zd Zd Z xZS )
Dnf5Modulec                Z    t         t        |   |       | j                          d| _        y )Ndnf5)superre   __init___ensure_dnfpkg_mgr_name)selfmodule	__class__s     r   ri   zDnf5Module.__init__  s&    j$(0"r_   c                   	 |j                         D cg c]  }|j                          }}g }t        | j                        j                  |      x}r$|j                  ddj                  |       d       t        | j                        j                  |      x}r$|j                  ddj                  |       d       |r,| j                  j                  dj                  |             y y c c}w # t        $ r Y y w xY w)Nz]No matches were found for the following plugin name patterns while enabling libdnf5 plugins: z, .z^No matches were found for the following plugin name patterns while disabling libdnf5 plugins:  msg)get_plugins_infor$   r   r   enable_plugin
differenceappendjoindisable_pluginrm   	fail_json)rl   r   r+   plugin_namesrs   enable_unmatcheddisable_unmatcheds          r   fail_on_non_existing_pluginsz'Dnf5Module.fail_on_non_existing_plugins  s+   	262G2G2IJQAJJLJLJ "4#5#56AA,OOOJJoptpypy  {K  qL  pM  MN  O !$D$7$7 8 C CL QQQJJpquqzqz  |M  rN  qO  OP  Q KK!!chhsm!4 # K 	
 	s!   C7 C2C7 2C7 7	DDc           	     f   t        | j                        }|xt        j                  d<   t        j                  d<   |xt        j                  d<   t        j                  d<   d}	 dd la	 dd lat        j                  j                  a	|ry g d}t               st        |d	      }|rt        |       | j                  j                  d
j                  t         j"                  t         j$                  j'                  dd      |      g        y # t
        $ r d}Y w xY w# t
        t        f$ r Y w xY w)NLC_ALLLC_MESSAGESLANGUAGELANGTr   F)z/usr/libexec/platform-pythonz/usr/bin/python3z/usr/bin/pythonr   zCould not import the libdnf5 python module using {0} ({1}). Please install python3-libdnf5 package or ensure you have specified the correct ansible_python_interpreter. (attempted {2})
 )rs   failures)r   rm   osenvironr   ImportErrorlibdnf5.exception	exceptionErrorr8   r   r   r   r   rz   formatsys
executablerV   replace)rl   localehas_dnfsystem_interpretersinterpreters        r   rj   zDnf5Module._ensure_dnf  s   )$++6;AA

8rzz-86<<

:F!3 		$#--33M 
 78KYWK{+ 	BBH& 3 3D" =?RC  	 	
9  	G	 ^, 		s$   %D *D DDD0/D0c                *   | j                   sA| j                  s5t        j                         dk7  r| j                  j                  dg d       t        j                  j                         }|j                         }| j                  r| j                  |_        	 |j                          | j                  ,|j!                         }|j#                  d| j                         | j$                  r| j$                  |_        | j(                  r'| j(                  dk(  rd| _        | j(                  |_        | j*                  |_        | j,                  | j,                   |_        n| j.                  | j.                  |_        | j0                  |_        	 |j2                   | j4                   |_        | j4                   |_        | j<                  |_        | j>                  |_         | jB                  |_!        d	|_"        | jF                  rdnd
|_#        | jH                  r| jH                  |_%        | jL                  r	 |jO                  | jL                  d	       | jP                  r	 |jO                  | jP                  d       |jS                          | jU                  |       |jW                         }t        jX                  j[                         }|j#                  |j]                         t        jX                  j^                  j`                         t        jX                  jc                  |d      }|je                  |       | jf                  rt        jh                  jk                  |      }|jm                  t        jh                  jn                  jp                         |D ]  }	|	js                         }
t        jt                  jw                  |
      s3t        jh                  jy                  ||
      }|j{                  t        jh                  jx                  j|                          |j                         }|j                          t        jh                  jk                  |      }| j                  rK|j                  | j                  t        j                  j                         |D ]  }	|	j                           | j                  rK|j                  | j                  t        j                  j                         |D ]  }	|	j                           	 |j                          | jf                  r7| j                  s+| j                   s| j                  j                  ddg d       | j                   rJ| j                   }|dk(  rd}|dv rXt        j                  j                  |      } t        |dj                  |                    |D cg c]  }t        |       }}n|dv rQt        jh                  jk                  |      }|j                  d	       |D 	cg c]  }	|	j                         dd }}	nht        j                  j                         }t        j                  j                  |      }|j                  ||d	       |D cg c]  }t        |       }}| j                  j                  d|d       t        j                  j                         }	 |j                  d	       |j                  d       | j                  s| j                  rt        j                  j                  |      }g }| j                  r|j                  d       | j                  r|j                  d       |jm                  |       d	|__        |j                  |       t        j                  j                  |      }g }| j                  dgk(  r"| j                  dk(  r|j                  |       n| j                  dv r| j                  dk(  }| j                  D ]  }t        ||      r | j                  s|j                  ||       /t        ||      r|s>|j                  ||       Q| j                  r!|j                  dj                  |             ~|j                  ||        n`| j                  d v rR| j                  D ]  }	 |j                  ||        | j>                  r"t        |      D ]  }|j                  ||        |j                  | j                         	 |j                         }j                         rg }|j                         D ]  }|j                         t        j                  j                  k(  r=| j                  dv r/|j                  d!j                  |j                                      k|j                  |j                                 |j                         t        j                  j                  z  dk7  rd"}nd#}| j                  j                  ||d       d$d%d$d$d%d&}t        |j                               }|j                         D ]  }| j                  rd'}n7t        j                  j                  j                  |j                               }|j                  d(j                  |j]                  ||      |j                         j                                       d}| j                  j                  r|rAd)}n=|r:|j                          | j                  s|j                  d*       |j                         } | t        j                  j                  j                  k(  rM| j                  j                  d+j                  d,j	                  |j                                     g d       n| t        j                  j                  j                  k7  r[| j                  j                  d#|j                         D !cg c]$  }!d(j                  |j                  |       |!      & c}!d       |s|sd-}| j                  j                  |||d.       y # t        $ r=}| j                  j                  t        |      | j                  g d       Y d }~d }~ww xY w# t6        $ r | j4                   |_        Y ;w xY w# t6        $ r  | j                  j                  d       Y 
w xY w# t6        $ r  | j                  j                  d       Y 
w xY w# t6        $ r |j                  d	       Y <w xY wc c}w c c}	w c c}w # t6        $ r d	|_X        d|_Y        Y w xY w# t        $ r2}| j                  j                  t        |      g d       Y d }~d }~ww xY w# t        $ r2}| j                  j                  t        |      g d       Y d }~d }~ww xY wc c}!w )/Nr   z/This command has to be run under the root user.r1   )rs   r   rc)rs   	conf_filer   r   
releaseverall*Tnonez1'enable_plugin' requires python3-libdnf5 5.2.0.0+rr   Fz2'disable_plugin' requires python3-libdnf5 5.2.0.0+zdnf5.logzCache updated)rs   changedresultsr   updatesupgrades>   r   rP   rH   z	filter_{}>   reposrepositoriesenabled)repoidstater   )rs   r   r   bugfixsecuritylatest>   r   presentrH   z@Packages providing {} not installed due to update_only specified>   absentremovedzNo package {} available.zDepsolve Error occurredz0Failed to install some of the specified packages	InstalledRemoved)InstallRemoveReplaceUpgradeReplaced
Downloadedz{}: {}z@Check mode: No changes made, but would have if not in check modezansible dnf5 modulez%Failed to validate GPG signatures: {},zNothing to do)r   r   rs   r   )r=   download_onlyr   geteuidrm   rz   r   r   Base
get_configr   config_file_pathload_configr8   r[   r   get_varsr   excludeexcludepkgsdisable_excludesskip_brokennobestbestinstall_weak_depspkg_gpgcheckdisable_gpg_checkr   gpgchecklocalpkg_gpgcheck	sslverify
autoremoveclean_requirements_on_removeinstallrootuse_host_config	cacheonlydownload_dirdestdirru   enable_disable_pluginsry   setupr~   
get_loggerloggerGlobalLoggergetLoggerLevel_DEBUGcreate_file_logger
add_loggerupdate_cacherW   	RepoQueryfilter_typeRepoType_AVAILABLEget_cachedirpathexists	RepoCachewrite_attributeATTRIBUTE_EXPIREDget_repo_sack&create_repos_from_system_configurationdisablerepo	filter_idcommonQueryCmp_IGLOBdisable
enablerepoenable
load_reposupdate_and_load_enabled_reposnames	exit_jsonr   r   getattrr   r^   filter_enabledget_idr   r!   GoalJobSettingsr   r   r   r   r   r   advisoryAdvisoryQueryrw   skip_unavailableset_advisory_filterGoalr   add_rpm_upgraderN   allow_downgradeadd_installr,   add_upgradeupdate_only
add_removerc   add_rpm_removeset_allow_erasingallowerasingresolveget_problemsget_resolve_logsget_problemGoalProblem_NOT_FOUNDget_spec	to_stringGoalProblem_SOLVER_ERRORboolget_transaction_packagestransaction!transaction_item_action_to_string
get_actionget_packagerY   
check_modedownloadset_descriptionrunTransaction$TransactionRunResult_ERROR_GPG_CHECKrx   get_gpg_signature_problemsTransactionRunResult_SUCCESSget_transaction_problemstransaction_result_to_string)"rl   r   confe	variables
log_routerglobal_loggerr   
repo_queryrW   repo_dir
repo_cachesackcommandrb   r]   r   resolve_spec_settingsr&   advisory_querytypesgoalupgrader%   pkgr  r   	log_eventrs   actions_compat_mapr   actionresultlogs"                                     r   r  zDnf5Module.run%  s   yy!3!3

8IKK!!E "  ||  " >>$(NND!	 ??&IMM,8<<#||D  $$-(+%$($9$9D!++;;" KKDIYY"		DI!%!7!7	;
 %)$:$: :D%)%;%;!;,0OO)++#"&..f,,DL_++D,>,>E `++D,?,?G 	

 	))$/__&
335*..*GNN,A,A,M,MN224Df% //5J""7<<#4#4#C#CD" Y,,.77>>(+!(!7!7h!GJ..w||/E/E/W/WX	Y !!#335\\++D1
  !1!17>>3P3PQ" ??  '..2O2OP" 	5OO
 TZZ		KK!!#	 "  99iiG)#$@@006;{11':;=CHI?73II55..t4$$T*UZ[TdkkmiH[[(/(H(H(J%006&&w0EtLCHI?73IIKK!!b'a!@<<//1	+((.&&u- ;;$--$--;;DANE{{X&}}Z(&&u-$(D!((8||  &::#4::#9  *ZZ==jjH,G

 9-dD9++((x8!$-((x8'''i'p'pqu'vw((x89 ZZ00

 IIOOD(3I
 ,T2 7C''X67 	t001	A,,.K ##%H(99; ;	((*gll.P.PPUYU_U_  dF  VFOO$>$E$EiFXFXFZ$[\OOI$7$7$9:; '')GLL,Q,QQUVV/HKK!!! "  #""!
 {;;=>779 	sC!!% 11SSTWTbTbTdeNN8??+=+A+A&&+QSVSbSbSdSnSnSpqr	s ;;!!X  "%%++,AB$*W\\55ZZZKK))CJJ388T_TzTzT|K}~!# * 
 w||77TTTKK))Nt  uY  uY  u[  "\mp(//+2Z2Z[a2bdg"h  "\ *  7!C	 	 	
Y  	KK!!F..	 "  	6  	7 $ 6 66DM	7" " _%%*]%^_ " `%%*^%_`N  	5..t4	5( J \
 J  	+'+H$%*H"	+L % IKK))c!fra)HHI  	AKK!!c!fra!@@	Ap "\s   r s :s. #t u u'u,u1 "u6 v)w +)x
	s	2ss	s+*s+.%tt%uuu$#u$6vv	w'w

w	x'xx)__name__
__module____qualname__ri   r~   rj   r  __classcell__)rn   s   @r   re   re     s    #5.-
^A
r_   re   c                 P    t        t        di t              j                          y )N )re   r   r
   r  r4  r_   r   mainr5  )  s    }434599;r_   __main__)
__future__r   DOCUMENTATIONEXAMPLESRETURNr   r   ansible.module_utils.basicr   "ansible.module_utils.common.localer   #ansible.module_utils.common.respawnr   r   r   ansible.module_utils.yumdnfr	   r
   r   RuntimeErrorr8   r,   rN   r^   rc   re   r5  r/  r4  r_   r   <module>r@     s   
 #rhGR
. 
 
 4 G l l D
+\)]XN
 N
b
< zF r_   