ansible / ansible.builtin / v2.9.27 / module / aix_inittab Manages the inittab on AIX | "added in version" 2.3 of ansible.builtin" Authors: Joris Weijters (@molekuul) preview | supported by communityansible.builtin.aix_inittab (v2.9.27) — module
pip
Install with pip install ansible==2.9.27
Manages the inittab on AIX.
# 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 entry 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
- name: Remove startmyservice from inittab aix_inittab: name: startmyservice runlevel: 2 action: wait command: echo hello state: absent become: yes
name: aliases: - service description: - Name of the inittab entry. required: true type: str state: choices: - absent - present default: present description: - Whether the entry should be present or absent in the inittab file. type: str action: choices: - boot - bootwait - hold - initdefault - 'off' - once - ondemand - powerfail - powerwait - respawn - sysinit - wait description: - Action what the init has to do with this entry. required: true type: str command: description: - What command has to run. required: true type: str runlevel: description: - Runlevel of the entry. required: true type: str insertafter: description: - After which inittabline should the new entry inserted. type: str
changed: description: Whether the inittab changed or not returned: always sample: true type: bool msg: description: Action done with the inittab entry returned: changed sample: changed inittab entry startmyservice type: str name: description: Name of the adjusted inittab entry returned: always sample: startmyservice type: str