the '# centos7' comment on 2 targets is legal I believe. 
To rule this out I have removed it for a test run. Still the error was present



> On 10/14/2021 2:14 PM dulha...@mailbox.org wrote:
> 
>  
> > On 10/14/2021 1:44 PM Sandip Bhattacharya <sand...@showmethesource.org> 
> > wrote:
> > 
> >  
> > On 14.10.21 11:49, dulhaver via Ansible Project wrote:
> > > I am running a playbook to install postgresql 
> > > <https://paste.debian.net/1215359/> against a centos7 (python 2.75) 
> > > target and am getting this error about a bad python interpreter 
> > > <https://paste.debian.net/1215357/>.
> > > 
> > > I try to solve this via the inventory.yml
> > > 
> > > all:
> > >    hosts:
> > >      [hostname]:                 # centos7
> > 
> > Is this literally what is in your inventory.yaml file? Is that even valid 
> > yaml?
> > Shouldn't it be:
> > 
> > all:
> >    hosts:
> >      hostname:                 # centos7
> > 
> this is my literal inventory file: https://paste.debian.net/1215386/
> it works for other playbooks, it works for ad-hoc commands (where I addresse 
> a particular host from that group)

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1090834351.99768.1634214235164%40office.mailbox.org.

Reply via email to