No, kernelup is only registered for the kernel update (the first one) - the
second kernelup registration was only used to test that it registers and
test functionality but is not meant to be there.


*Allan Mullan*
e: [email protected] | m: +44 (0)7 4269 78476


On 16 June 2014 16:56, Christian Rusa <[email protected]> wrote:

>  Maybe I get something wrong, but why do you register kernelup for the
> "other updates"?
>
>
>
>
> On 2014-06-16 17:52, Allan Mullan wrote:
>
> Sorry, that was left in after I tested commenting out the Kernel update
> task. That isn't in the script that is failing.
>
>
> On Monday, 16 June 2014, 'Petros Moisiadis' via Ansible Project <
> [email protected]> wrote:
>
>>  On 06/16/14 17:52, [email protected] wrote:
>>
>> I've written the following playbook that seems to work perfectly, except
>> when I comment out the kernel update task. Hopefully nothing that I've just
>> missed from the docs.
>>
>>   ---
>> - name: system updates
>>   hosts: production
>>   remote_user: ansible
>>   sudo: yes
>>
>>   tasks:
>>     - name: install kernel updates
>>       action: yum name=kernel* state=latest
>>       # If there are any updates, we register the below
>>       # This will trigger a reboot
>>       register: kernelup
>>
>>     - name: install other updates
>>       action: yum name=* state=latest
>>       register: kernelup
>>
>>     - name: reboot the system
>>       command: reboot
>>       when: kernelup.changed
>>
>>     - name: wait for ssh to come back up
>>       local_action: wait_for host={{ ansible_fqdn }} port=22 delay=120
>> timeout=900 state=started
>>       when: kernelup.changed
>>
>>     - name: restart services
>>       service: name=sendmail state=restarted
>>
>>
>>   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/8410ae09-8af1-409c-a444-2cfd5cf635a1%40googlegroups.com
>> <https://groups.google.com/d/msgid/ansible-project/8410ae09-8af1-409c-a444-2cfd5cf635a1%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> It seems that you should register 'kernelup' only for the first task, not
>> twice.
>>  --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Ansible Project" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/ansible-project/ygoE8zpQMlg/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, 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/539F1227.70609%40yahoo.gr
>> <https://groups.google.com/d/msgid/ansible-project/539F1227.70609%40yahoo.gr?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
>
> *Allan Mullan*
> e: [email protected] | m: +44 (0)7 4269 78476
> --
> 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/CADnEW0%3DwbvOb4s3BAiikbHLqVsWee6HQ5ikoaUgC%2BDYwK6UdZg%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CADnEW0%3DwbvOb4s3BAiikbHLqVsWee6HQ5ikoaUgC%2BDYwK6UdZg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> toscom - the open source company
>
> Christian Rusa
> Breiteneckergasse 32                    1230 Wien
> Mobil: 0699 10205595                    Fax: 01 9249633www.toscom.at          
>                  [email protected]
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ansible-project/ygoE8zpQMlg/unsubscribe.
> To unsubscribe from this group and all its topics, 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/539F13BE.8000406%40toscom.at
> <https://groups.google.com/d/msgid/ansible-project/539F13BE.8000406%40toscom.at?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADnEW0%3DCjnSMi1h1OjxAoHK%2B7nbsoo1D%3D0c2u5_71XiM_x4hNA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to