D
D
DenZel2020-02-16 15:35:31
linux
DenZel, 2020-02-16 15:35:31

How to configure grub on a remote server using Ansible?

Hello!
The task is to use ansible to configure on a remote grub server: -
create a user
- enter a password on the basis of which the password_pbkdf2 crypto password is generated
- and other possible settings
Is there an ansible module for grub or can you tell me a proven solution?
Thank you!
PS: as I understand it, everything can be done through lineinfile , regexp.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DenZel, 2020-02-20
@gen4_gdm

Using the expect module.
Requirements for the host on which the module will be executed:
Python >2.7
Pexpect >3.3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question