S
S
sayaptpro2020-07-29 21:46:03
Parsing
sayaptpro, 2020-07-29 21:46:03

How to parse https with ansible?

Hello!
How can you parse a page using ansible modules?
For example: on the https page there are links to files, I would like to make a selection by mask and then reuse it in my play, in one of the tasks. I understand how to do this with curl sed and awk, but I can't figure out how to make a fetch without using the raw command or shell module. Plus, curl is not included in the basic distribution on all OSes.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sanes, 2020-07-29
@Sanes

curl is not included in the basic distribution on all OSes

Put it if not.

M
MaxKozlov, 2020-07-29
@MaxKozlov

I don't remember ready-made modules, but you can try uri followed by regex_search / regex_replace

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question