Not doing well. 

It starts here:   
https://github.com/LeamHall/Ansible_Test/blob/master/playbooks/reboot_nodes.yml

- hosts: b2532_vms 
   become: True 

  vars: 
     hosts: 
       - genesis 
       - exodus 

   roles: 
    - reboot

Which should call playbooks/roles/reboot/tasks/main.yml:  
https://github.com/LeamHall/Ansible_Test/blob/master/playbooks/roles/reboot/tasks/main.yml

- name: reboot_and_wait_for 
   include: reboot_node.yml 
   include: wait_for.yml 
   include: debug.yml

   with_items: 
     - "{{ hosts }}"


Which should call:  
https://github.com/LeamHall/Ansible_Test/blob/master/playbooks/roles/reboot/tasks/reboot_node.yml

- name: reboot 
   command: /sbin/reboot

But doesn't. It does call the debug.yml file which just says "Hello there!"

Ideas? The goal is to reboot and wait_for each host in turn.

Leam

-- 
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/a656d7bb-8c59-4b58-8601-802918f48e2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to