<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I got it fixed my adding these in my playbook<div>







<p class="p1"><span class="s1">  - command: sudo env DEBIAN_FRONTEND=noninteractive</span></p>
<p class="p1"><span class="s1">    - shell: "DEBIAN_FRONTEND=noninteractive apt-get install freeipa-client -y"</span></p><p class="p1"><span class="s1"><br></span></p><p class="p1"><span class="s1">Thanks,</span></p><p class="p1"><span class="s1">Deepak</span></p><br><div>> Subject: Re: [Freeipa-users] FreeIPA client installation on ubuntu 14.04<br>> To: deepak_dimri@hotmail.com; freeipa-users@redhat.com<br>> From: tjaalton@ubuntu.com<br>> Date: Wed, 21 Sep 2016 14:40:17 +0300<br>> <br>> On 21.09.2016 11:34, Deepak Dimri wrote:<br>> > Thanks Timo,<br>> > <br>> > The "DEBIAN_FRONTEND=noninteractive apt-get install freeipa-client -y"<br>> > command works on the terminal but within ansible playbook i am getting <br>> > <br>> > [Errno 2] No such file or directory", "rc": 2}  when adding<br>> > command: DEBIAN_FRONTEND=noninteractive apt-get install freeipa-client -y<br>> > <br>> > <br>> > any idea how can i get this resolved for ansible?  i tried<br>> > "export DEBIAN_FRONTEND=noninteractive" and then "apt-get install<br>> > freeipa-client -y"  but that did not help either still getting [Errno 2]<br>> > No such file or directory", "rc": 2} <br>> <br>> no idea about that, but you could also preseed the debconf priority<br>> beforehand and then run apt-get, something like:<br>> <br>> echo 'debconf debconf/priority select critical' > /tmp/preseed<br>> debconf-set-selections /tmp/preseed<br>> apt-get ...<br>> <br>> <br></div></div>                                       </div></body>
</html>