How to use Ansible to configure on the remote server grub?

Hello!
Task using ansible to run the setup on a remote server grub:
-create user
- enter the password on the basis of which is generated kryptopyrrole password_pbkdf2
- and other possible settings
Ansible has a module for grub or can tell me a proven solution?
Thank you!
PS: as I understand it, everything can be done using lineinfile , regexp.
April 7th 20 at 15:18
1 answer
April 7th 20 at 15:20
Solution
Using the expect module.
Requirements for the host on which to run the module :
Python >2.7
Pexpect >3.3

Find more questions by tags AnsibleDevOpsLinux