Running the following playbook with: *ansible-playbook update_system.yml
--limit=production -K*
---
- 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
- 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
On Monday, June 16, 2014 7:43:40 PM UTC+1, Michael Peters wrote:
>
> On Mon, Jun 16, 2014 at 11:52 AM, Allan Mullan <[email protected]
> <javascript:>> wrote:
> > Sorry, that was left in after I tested commenting out the Kernel update
> > task. That isn't in the script that is failing.
>
> Could you try pasting the ansible playbook that is failing (if the one
> you pasted isn't it).
>
--
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/e2a4b45a-40d5-4094-8c46-ce29291d9fb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.