cusux / cusux.loginmsg / 1.0.4 / module / loginmsg Alter the pre-login and login text of a UNIX target. | "added in version" 2.10 of cusux.loginmsg" Authors: Paul Wetering (@cusux) preview | supported by communitycusux.loginmsg.loginmsg (1.0.4) — module
Install with ansible-galaxy collection install cusux.loginmsg:==1.0.4
collections: - name: cusux.loginmsg version: 1.0.4
The C(loginmsg) module alters the MOTD and/or ISSUE file.
# Create a new pre-login message - name: Create the pre-login message with fqdn loginmsg: text: "Welcome to the wonderfull world of whatever." when: before state: present fqdn: true
# Remove the pre-login message - name: Create the pre-login message with fqdn loginmsg: text: "Welcome to the wonderfull world of whatever." when: before state: absent
fqdn: default: false description: - Define wether or not to add an extra line displaying the targets fqdn. type: bool text: description: - Text to display before or after user login. required: true type: str when: choices: - before - after description: - Define if the set text is displayed before or after user login. required: true type: str state: choices: - present - absent default: present description: - Define wether or not the text is present. type: str