D
D
DenZel2020-02-18 20:07:25
linux
DenZel, 2020-02-18 20:07:25

How to automate program installation with Ansible?

Hello!
Faced the following problem:
When installing the program, you need to perform a series of confirmations when choosing one or another Settings in the terminal, answer yes / no, select 1 or 2 from the proposed list, enter the phrase (I describe the creation of a crypto folder using the encrypt utility)
Tell me how it is possible to automate this with Ansible? Namely, answers to questions and input of values ​​that are offered.
Is there an Ansible module for this?
Thanks

Answer the question

In order to leave comments, you need to log in

2 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

D
Dmitry Shitskov, 2020-02-18
@Zarom

https://docs.ansible.com/ansible/latest/modules/ex...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question