cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1097
Views
0
Helpful
0
Replies

Multiple Duo prompts with Ansible

myeecsu
Level 1
Level 1

I have an issue with running Ansible commands on DUO implemented RHEL servers. When I run a command from my Ansible control node to a host, I have to hit the DUO “Approve” button on my iPhone Duo app 5 times before I see the output. I don’t have this issue if I simply SSH to the host. I can SSH to a host with only a single “Approve”.

Example command:

ansible -m command -a “uptime”

On the host server, the /var/log/messages file shows this output.

Jan 14 07:41:14 systemd: Started Session 766 of user myee.
Jan 14 07:41:14 systemd-logind: New session 766 of user myee.
Jan 14 07:41:14 systemd: Starting Session 766 of user myee.
Jan 14 07:41:23 login_duo: Successful Duo login for ‘myee’ from
Jan 14 07:41:26 kernel: IPv4: martian source from 172.17.0.5, on dev ens192
Jan 14 07:41:26 pxdcsdockrucp01 kernel: ll header: 00000000: 00 50 56 80 0a 07 00 50 56 80 0e 20 08 00 .PV…PV… …
Jan 14 07:41:30 login_duo: Successful Duo login for ‘myee’ from
Jan 14 07:41:36 login_duo: Successful Duo login for ‘myee’ from
Jan 14 07:41:40 login_duo: Successful Duo login for ‘myee’ from
Jan 14 07:41:43 login_duo: Successful Duo login for ‘myee’ from
Jan 14 07:41:43 python: ansible-command Invoked with warn=True executable=None _uses_shell=False _raw_params=free -m removes=None

Does anyone else have this issue and, if so, what is the fix? Thanks!
Michael

0 Replies 0
Quick Links