So what I posted before was a simplification to do everything separately.
Initially, I had a role whose main.yml task includes qt.yml and wx.yml 
(which are next to main.yml, in roles/common/tasks/)

The qt.yml is:
---
 - name: Adding ubuntu sdk repo
   apt_repository: 
     repo: "ppa:ubuntu-sdk-team/ppa"
     validate_certs: no 
     state: present
 
 - name: updating apt
   apt: update_cache=true
 
 - name: Installing QT5
   apt: name=qt5-default

and the wx.yml is:
---
- name: Adding codelite repo keys
  become:
  apt_key: url="http://repos.codelite.org/CodeLite.asc";

- name: Adding codelite repo
  apt_repository: repo="deb http://repos.codelite.org/wx3.0/ubuntu precise 
universe"

- name: Upding apt cache
  apt: update_cache=true

- name: Install wx packages
  apt: pkg={{ item }} state=present
  with_items:
    -  libwxbase3.0-0-unofficial 
    -  libwxbase3.0-dev 
    -  libwxgtk3.0-0-unofficial 
    -  libwxgtk3.0-dev 
    -  wx3.0-headers
    -  wx-common

Altering the order behaves the same, the second include is not actually 
included.

I just ran this playbook multiple times with every run having all includes 
commented out in sequence and the end result is correct. Each time, the 
include is run properly. Now how can I further debug why ansible is 
stopping when all includes are present?

On Friday, August 28, 2015 at 5:47:06 PM UTC-7, Brian Coca wrote:
>
> what is qt5 doing? does altering the order change the results? 
>
> On Fri, Aug 28, 2015 at 8:36 PM, Michael Legleux <[email protected] 
> <javascript:>> wrote: 
> > Here is what I'm trying with ansible 2.0.0 (dev from earlier this week) 
> > --- 
> > - hosts: ubuntu 
> >   gather_facts: true 
> >   sudo: true 
> >   tasks: 
> >   - include: base.yml 
> >   - include: qt5.yml 
> >   - include: wx.yml 
> >   - include: resources.yml 
> > 
> > 
> > I run this playbook and it stops after qt5 with no errors.If I comment 
> out 
> > qt5, it then runs the wx.yml, then stops. 
> > Each include run individually completes fine. 
> > Is this not the way to achieve what I'm trying. I can't see any reason 
> why 
> > it doesn't finish the run. 
> > 
> > -- 
> > 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 [email protected] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/ansible-project/72849a45-d0a4-43eb-856c-e6fb2eab487a%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
> Brian Coca 
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/60e11c02-f435-41ea-9c78-7febc1b16e75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to