ieisystem / ieisystem.inmanage / 1.1.1 / module / edit_smtp_com Set SMTP information | "added in version" 1.0.0 of ieisystem.inmanage" Authors: WangBaoshan (@ieisystem)ieisystem.inmanage.edit_smtp_com (1.1.1) — module
Install with ansible-galaxy collection install ieisystem.inmanage:==1.1.1
collections: - name: ieisystem.inmanage version: 1.1.1
Set SMTP com information on ieisystem Server.
Only the M6 models support this feature.
- name: Smtp com test hosts: inmanage no_log: true connection: local gather_facts: no vars: inmanage: host: "{{ ansible_ssh_host }}" username: "{{ username }}" password: "{{ password }}" tasks: - name: "Set smtp com information" ieisystem.inmanage.edit_smtp_com: status: "disable" provider: "{{ inmanage }}" - name: "Set smtp com information" ieisystem.inmanage.edit_smtp_com: status: "enable" server_ip: "100.2.2.2" email: "ieit@ieisystem.com" server_auth: "enable" server_username: "admin" server_password: "1234qwer!@#$" 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 email: description: - Sender email. type: str status: choices: - enable - disable description: - SMTP Support. required: true type: str subject: description: - Email theme. 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 asset_tag: choices: - enable - disable description: - Product asset label. type: str host_name: choices: - enable - disable description: - Server name. type: str server_ip: description: - SMTP server IP. type: str event_level: choices: - Info - Warning - Critical description: - Events above this level will be sent. type: str server_auth: choices: - enable - disable description: - SMTP server authentication. type: str server_port: description: - SMTP server port, The Identification for retry count configuration(1-65535). type: int serial_number: choices: - enable - disable description: - Serial number. type: str ssl_tls_enable: choices: - enable - disable description: - SMTP SSLTLS Enable. - I(ssl_tls_enable=disable), when I(star_tls_enable=enable). type: str server_password: description: - SMTP server Password, length be 4 to 64 bits, cannot contain ' '(space). - Required when I(server_auth=enable). type: str server_username: description: - SMTP server Username, length be 4 to 64 bits. - Must start with letters and cannot contain ','(comma) ':'(colon) ' '(space) ';'(semicolon) '\'(backslash). - Required when I(server_auth=enable). type: str star_tls_enable: choices: - enable - disable description: - SMTP STARTTLS Enable. - I(star_tls_enable=disable), when I(ssl_tls_enable=enable). type: str server_secure_port: description: - SMTP server secure port, The Identification for retry count configuration(1-65535). type: int
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