New in version 2.3.
Action what the init has to do with this entry.
What command has to run.
After which inittabline should the new entry inserted.
Name of the inittab entry.
Runlevel of the entry.
Whether the entry should be present or absent in the inittab file
# Add service startmyservice to the inittab, directly after service existingservice. - name: Add startmyservice to inittab aix_inittab: name: startmyservice runlevel: 4 action: once command: "echo hello" insertafter: existingservice state: present become: yes # Change inittab enrty startmyservice to runlevel "2" and processaction "wait". - name: Change startmyservice to inittab aix_inittab: name: startmyservice runlevel: 2 action: wait command: "echo hello" state: present become: yes # Remove inittab entry startmyservice. - name: remove startmyservice from inittab aix_inittab: name: startmyservice runlevel: 2 action: wait command: "echo hello" state: absent become: yes
Common return values are documented here Return Values, the following are the fields unique to this module:
|mgs||action done with the inittab entry||changed||string||changed inittab entry startmyservice|
|changed||whether the inittab changed or not||boolean||True|
|name||name of the adjusted inittab entry||always||string||startmyservice|
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
This module is community maintained without core committer oversight.
For more information on what this means please read Module Support