[CentOS] How do I confirm importing repo key without user intervention?

Wed Mar 15 02:52:37 UTC 2017
Yuri Kanivetsky <yuri.kanivetsky at gmail.com>

Well, the idea was to make yum not ask about confirmation when doing
yum install, like:

$ rpm --import https://...
$ yum accept-key ...
$ yum install passenger

Because, when I do `yum -y install`, I don't know in advance which
questions I'm answering with yes. And for the second command I was

$ yum makecache -y --disablerepo=* --enablerepo=passenger

Which doesn't convey the intention. Considering this, I'm now leaning
to using `yum -y install`.