ieisystem / ieisystem.inmanage / 1.1.1 / module / edit_m6_log_setting Set bmc system and audit log setting | "added in version" 1.0.0 of ieisystem.inmanage" Authors: WangBaoshan (@ieisystem)ieisystem.inmanage.edit_m6_log_setting (1.1.1) — module
Install with ansible-galaxy collection install ieisystem.inmanage:==1.1.1
collections: - name: ieisystem.inmanage version: 1.1.1
Set bmc system and audit log setting on ieisystem Server.
Only the M6 models support this feature.
- name: Edit log setting test hosts: inmanage connection: local gather_facts: no vars: inmanage: host: "{{ ansible_ssh_host }}" username: "{{ username }}" password: "{{ password }}" tasks: - name: "Edit bmc system log setting" ieisystem.inmanage.edit_m6_log_setting: status: "disable" provider: "{{ inmanage }}" - name: "Edit bmc audit log setting" ieisystem.inmanage.edit_m6_log_setting: status: "enable" host_tag: "HostName" level: "Info" protocol_type: "TCP" server_id: 0 server_addr: "100.2.126.11" server_port: 514 log_type: "both" provider: "{{ inmanage }}" - name: "test bmc audit log" ieisystem.inmanage.edit_m6_log_setting: server_id: 0 test: True provider: "{{ inmanage }}"
host: description: - Specifies the DNS host name or address for connecting to the remote device over the specified transport. The value of host is used as the destination address for the transport. type: str test: default: false description: - Test remote log settings, set when server_id is not none. type: bool level: choices: - Critical - Warning - Info description: - Events Level, set when I(status=enable). type: str status: choices: - enable - disable description: - System Log Status. type: str host_tag: choices: - HostName - SerialNum - AssertTag description: - System log host tag, set when I(status=enable). type: str log_type: choices: - idl - audit - both description: - Remote Log Type, set when server_id is not none. type: str password: description: - Specifies the password to use to authenticate the connection to the remote device. If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_PASSWORD) will be used instead. type: str provider: description: - A dict object containing connection details. suboptions: host: description: - Specifies the DNS host name or address for connecting to the remote device over the specified transport. The value of host is used as the destination address for the transport. type: str password: description: - Specifies the password to use to authenticate the connection to the remote device. If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_PASSWORD) will be used instead. type: str username: description: - Configures the username to use to authenticate the connection to the remote device. If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_USERNAME) will be used instead. type: str type: dict username: description: - Configures the username to use to authenticate the connection to the remote device. If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_USERNAME) will be used instead. type: str server_id: choices: - 0 - 1 - 2 - 3 description: - Syslog Server ID, set when I(status=enable). type: int server_addr: description: - Server Address, set when server_id is not none. type: str server_port: description: - Server Address, set when server_id is not none. type: int protocol_type: choices: - UDP - TCP description: - Protocol Type, set when I(status=enable). type: str
changed: description: Check to see if a change was made on the device. returned: always type: bool message: description: Messages returned after module execution. returned: always type: str state: description: Status after module execution. returned: always type: str