Ansible 통합

Ansible은 컴퓨터 클라이언트 시스템을 관리하는 도구입니다. 더 많은 정보를 원하시면, https://www.ansible.com을 참조하십시오.

SUSE Multi-Linux Manager은(는) Ansible 제어 노드 관리를 지원합니다. 자세한 내용은 administration:ansible-setup-control-node.adoc#at.ansible.overview에서 확인할 수 있습니다.

The supported version for the Ansible Control Node is Ansible 11.3. It should be obtained from the operating system vendor’s official repositories. For example, on SUSE Linux Enterprise 15 SP6 and SP7, Ansible is available through the Systems Management Module. For Control Nodes running operating systems other than SUSE Linux Enterprise, use Ansible shipped together with that distribution.

Ansible 소프트웨어는 SUSE Multi-Linux Manager Proxy 및 SUSE Multi-Linux Manager for Retail Branch Server에도 사용할 수 있습니다.

1. 기능 개요

SUSE Multi-Linux Manager를 사용하면 시스템 관리자가 Ansible 제어 노드를 작동할 수 있습니다. 지원되는 기능은 다음과 같습니다.

  • 인벤토리 파일 검사

  • 플레이북 검색

  • 플레이북 실행

자세한 내용은 다음을 참조하십시오.

2. 요구사항 및 기본 구성

To use Ansible features, you need to register the already existing Ansible Control Node to the SUSE Multi-Linux Manager Server. In the Web UI, on the System Details  Properties page of the registered system, you must enable the Ansible Control Node system type of the Add-on System Types list.

Enabling the Ansible Control Node system type ensures that the ansible package is installed on the system by adding it in the highstate and activates the Ansible features under the System Details  Ansible tab.

As the next step, configure the paths to your Ansible playbook directories and inventory files on the System Details  Ansible  Control Node page. As an inventory path, you can use the standard Ansible inventory path /etc/ansible/hosts. As a playbook directory, you can use any directory on the control node, where your playbook files are stored. A playbook directory either contains .yml files or subdirectories with .yml files.

Ansible 제어 노드 설치 및 설정에 대해서는 Ansible 제어 노드 설정에서 확인할 수 있습니다.

3. 인벤토리 검사

인벤토리 경로를 정의한 후에는 SUSE Multi-Linux Manager를 사용하여 내용을 검사할 수 있습니다.

절차: Web UI에서 인벤토리 검사
  1. SUSE Multi-Linux Manager Web UI에서 시스템 세부 사항  Ansible  인벤토리로 이동합니다.

  2. 인벤토리 경로를 클릭하면 제어 노드에서 실시간으로 인벤토리 검사를 실행할 수 있습니다.

4. 플레이북 검색

플레이북 디렉토리를 정의한 후 시스템 세부 사항  Ansible  플레이북 페이지에서 플레이북을 검색할 수 있습니다.

인벤토리 검사와 마찬가지로 플레이북 검색 작업은 제어 노드에서 실시간으로 실행됩니다.

5. 플레이북 실행

You can schedule a playbook execution from the System Details  Ansible  Playbooks page. After selecting the playbook you wish to execute, you can select the inventory file for the execution from the Inventory Path drop-down menu of the Schedule Playbook Execution dialog. If you do not select any item, the default inventory configured in your Control Node will be used. The drop-down menu is populated with the inventories you defined in your Inventory paths and with inventories that have been locally discovered in your playbook directories. These are displayed as Custom Inventory items in the playbook details. You can also enter an arbitrary inventory path.

You can also pass variables to the playbook execution to override previously defined variables. To pass variables, locate the Playbook Content section and click Edit variables. In the Edit Variables dialog, you can add or edit variables as a list, dictionary, string, or boolean. Alternatively, click Edit YAML to edit the variables directly as YAML. Click Save to apply the variables to the playbook content.

그런 다음 플레이북 실행 시간을 선택하거나 작업 체인을 선택합니다. 최종적으로 SUSE Multi-Linux Manager는 플레이북을 제어 노드의 작업으로 실행합니다. 작업 결과는 작업 세부 사항 페이지에서 볼 수 있습니다.