Ansible: append to config line when entry is not present
I am trying to automate a config entry modification. I have AIX servers which have a file login.cfg and there is a line on which available shells are configured. It is like this:
Ansible regex replace matching but exclude other match in same line
Below lines in configuration file to be replaced with java path, but do not replace java where you have java.base and java.lang.