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 : |
� ���c{p � �` � d dl mZmZmZ eZdZdZd dlZd dl Z d dl Z d dlZd dlm c mc mZ d dlmZmZmZ d dlmZ d dlmZ d dlmZmZ d d lmZmZ d d lm Z m!Z! ddd ddddddddddd� Z" G d� de#� � Z$ G d� de$� � Z% G d� de$� � Z& G d� de$� � Z' G d� de'� � Z( G d � d!e$� � Z) G d"� d#e'� � Z* G d$� d%e$� � Z+ G d&� d'e$� � Z, G d(� d)e'� � Z- G d*� d+e$� � Z. G d,� d-e$� � Z/ G d.� d/e$� � Z0 G d0� d1e#� � Z1 G d2� d3e1� � Z2 G d4� d5e1� � Z3 G d6� d7e1� � Z4 G d8� d9e1� � Z5 G d:� d;e1� � Z6 G d<� d=e1� � Z7 G d>� d?e1� � Z8 G d@� dAe1� � Z9 G dB� dCe1� � Z: G dD� dEe1� � Z; G dF� dGe1� � Z< G dH� dIe1� � Z= G dJ� dKe1� � Z> G dL� dMe1� � Z? G dN� dOe1� � Z@ G dP� dQe1� � ZA G dR� dSe1� � ZB G dT� dUe1� � ZC G dV� dWe1� � ZD G dX� dYe1� � ZE G dZ� d[e1� � ZF G d\� d]e1� � ZG G d^� d_e1� � ZH G d`� dae1� � ZI G db� dce1� � ZJ G dd� dee1� � ZK G df� dge1� � ZL G dh� die1� � ZM G dj� dke1� � ZN G dl� dme1� � ZO G dn� doe1� � ZP G dp� dqe1� � ZQ G dr� dse1� � ZR G dt� due1� � ZS G dv� dwe1� � ZTdx� ZUeVdyk r eU� � dS dS )z� )�absolute_import�division�print_functiona� --- module: hostname author: - Adrian Likins (@alikins) - Hideki Saito (@saito-hideki) version_added: "1.4" short_description: Manage hostname requirements: [ hostname ] description: - Set system's hostname. Supports most OSs/Distributions including those using C(systemd). - Windows, HP-UX, and AIX are not currently supported. notes: - This module does B(NOT) modify C(/etc/hosts). You need to modify it yourself using other modules such as M(ansible.builtin.template) or M(ansible.builtin.replace). - On macOS, this module uses C(scutil) to set C(HostName), C(ComputerName), and C(LocalHostName). Since C(LocalHostName) cannot contain spaces or most special characters, this module will replace characters when setting C(LocalHostName). options: name: description: - Name of the host. - If the value is a fully qualified domain name that does not resolve from the given host, this will cause the module to hang for a few seconds while waiting for the name resolution attempt to timeout. type: str required: true use: description: - Which strategy to use to update the hostname. - If not set we try to autodetect, but this can be problematic, particularly with containers as they can present misleading information. - Note that 'systemd' should be specified for RHEL/EL/CentOS 7+. Older distributions should use 'redhat'. choices: ['alpine', 'debian', 'freebsd', 'generic', 'macos', 'macosx', 'darwin', 'openbsd', 'openrc', 'redhat', 'sles', 'solaris', 'systemd'] type: str version_added: '2.9' extends_documentation_fragment: - action_common_attributes - action_common_attributes.facts attributes: check_mode: support: full diff_mode: support: full facts: support: full platform: platforms: posix z� - name: Set a hostname ansible.builtin.hostname: name: web01 - name: Set a hostname specifying strategy ansible.builtin.hostname: name: web01 use: systemd N)� AnsibleModule�get_distribution�get_distribution_version)�get_platform_subclass)�ServiceMgrFactCollector)�get_file_lines�get_file_content)� to_native�to_text)�PY3� text_type�Alpine�Systemd�FreeBSD�Base�Darwin�OpenBSD�OpenRC�RedHat�SLES�Solaris) �alpine�debian�freebsd�generic�macos�macosx�darwin�openbsd�openrc�redhat�sles�solaris�systemdc �>