ieisystem.inmanage.edit_ipv4 – Set ipv4 information¶
Note
This plugin is part of the ieisystem.inmanage collection.
To install it use: ansible-galaxy collection install ieisystem.inmanage
.
To use it in a playbook, specify: ieisystem.inmanage.edit_ipv4
.
New in version 1.0.0: of ieisystem.inmanage
Requirements¶
The below requirements are needed on the host that executes this module.
Python 3.7+
inManage
Parameters¶
Examples¶
- name: Ipv4 test
hosts: inmanage
connection: local
gather_facts: no
vars:
inmanage:
host: "{{ ansible_ssh_host }}"
username: "{{ username }}"
password: "{{ password }}"
tasks:
- name: "Set ipv4 information"
ieisystem.inmanage.edit_ipv4:
interface_name: "eth0"
ipv4_status: "disable"
provider: "{{ inmanage }}"
- name: "Set ipv4 information"
ieisystem.inmanage.edit_ipv4:
interface_name: "eth0"
ipv4_status: "enable"
ipv4_dhcp_enable: "dhcp"
provider: "{{ inmanage }}"
- name: "Set ipv4 information"
ieisystem.inmanage.edit_ipv4:
interface_name: "eth0"
ipv4_status: "enable"
ipv4_dhcp_enable: "static"
ipv4_address: "100.2.36.10"
ipv4_subnet: "255.255.255.0"
ipv4_gateway: "100.2.36.1"
provider: "{{ inmanage }}"
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
WangBaoshan (@ieisystem)