V
V
Victor2015-12-11 22:13:50
linux
Victor, 2015-12-11 22:13:50

How to manage user's .ssh/config file with ansible?

I need to add keys and entries to .ssh/config file. Keys can be copied using the file. And what to do with editing the config? Is there a way other than direct editing? Any module that will carefully check if there is such an entry and add it if it doesn't?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Puma Thailand, 2015-12-12
@opium

you can just do a regexp

X
XakRu, 2015-12-12
@XakRU

Template, template used by jinja
goo.gl/r4dPB9

S
snp, 2015-12-12
@snp

There is an authorized_key module , which I think is what you need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question