Spec-Zone.ru › Ansible 2.10

community.general.aix_devices – Управляет устройствами AIX

Примечание

Этот плагин входит в коллекцию community.general (версия 1.3.2).

Для его установки используйте: ansible-galaxy collection install community.general.

Чтобы использовать его в книге задач, укажите: community.general.aix_devices.

  • Обзор
  • Параметры
  • Примеры

Обзор

  • Этот модуль обнаруживает, определяет, удаляет и изменяет атрибуты устройств AIX.

Параметры

Параметр Варианты/Значения по умолчанию Комментарии
attributes
словарь
Список атрибутов устройства.
device
строка
Имя устройства.
all позволяет повторно сканировать available все устройства (команда AIX cfgmgr).
force
логическое значение
    Варианты:
  • нет ←
  • да
Принудительное выполнение действия.
recursive
логическое значение
    Варианты:
  • нет ←
  • да
Удаляет или определяет устройство и дочерние устройства.
state
строка
    Варианты:
  • доступно ←
  • определено
  • удалено
Управляет состоянием устройства.
available (псевдоним present) повторно сканирует конкретное устройство или все устройства (если device не указано).
removed (псевдоним absent удаляет устройство).
defined изменяет состояние устройства на «Определено».

Примеры

- name: Scan new devices
  community.general.aix_devices:
    device: all
    state: available

- name: Scan new virtual devices (vio0)
  community.general.aix_devices:
    device: vio0
    state: available

- name: Removing IP alias to en0
  community.general.aix_devices:
    device: en0
    attributes:
      delalias4: 10.0.0.100,255.255.255.0

- name: Removes ent2
  community.general.aix_devices:
    device: ent2
    state: removed

- name: Put device en2 in Defined
  community.general.aix_devices:
    device: en2
    state: defined

- name: Removes ent4 (inexistent).
  community.general.aix_devices:
    device: ent4
    state: removed

- name: Put device en4 in Defined (inexistent)
  community.general.aix_devices:
    device: en4
    state: defined

- name: Put vscsi1 and children devices in Defined state.
  community.general.aix_devices:
    device: vscsi1
    recursive: yes
    state: defined

- name: Removes vscsi1 and children devices.
  community.general.aix_devices:
    device: vscsi1
    recursive: yes
    state: removed

- name: Changes en1 mtu to 9000 and disables arp.
  community.general.aix_devices:
    device: en1
    attributes:
      mtu: 900
      arp: off
    state: available

- name: Configure IP, netmask and set en1 up.
  community.general.aix_devices:
    device: en1
    attributes:
      netaddr: 192.168.0.100
      netmask: 255.255.255.0
      state: up
    state: available

- name: Adding IP alias to en0
  community.general.aix_devices:
    device: en0
    attributes:
      alias4: 10.0.0.100,255.255.255.0
    state: available

Авторы

  • Kairo Araujo (@kairoaraujo)

© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/community/general/aix_devices_module.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API