I’m just starting using Ansible a few weeks ago. Using:
ansible 1.4 (devel a002a24973) last updated 2013/09/25 17:14:03 (GMT -700)
Currently, I’m using it with Vagrant, VirtualBox with Ansible as a provisioner to build a clustered Varnish test suite. It works awesome.
In our dev/qa/production environments we’ve been running Varnish on Ubuntu Lucid. I’d like to upgrade to Precise. Time to upgrade. I thought this might be good test for Ansible. I’ve downloaded the standard lucid64 box and created a simple playbook:
-
name: Update apt cache
action: apt update_cache=true
tags: ubuntu_upgrade -
name: Distribution Upgrade {{dist_upgrade}}
apt: pkg=update-manager-core state=latest
when: ${dist_upgrade}
register: upgrade
tags: ubuntu_upgrade -
name: Do Release Upgrade
command: /usr/bin/do-release-upgrade -f DistUpgradeViewNonInteractive
when: (upgrade|success) and (${dist_upgrade})
tags: ubuntu_upgrade
When I run the playbook, the do-release fails task fails and Ansible hangs. I thought at some point it may timeout or someting but I let in run all night and the console indicated it was still working on the task.
When I log into the machines while the tasks are executing. It seems to start off okay on one machine but after a few minutes activity on the box decreases to an idle state. One thing I noticed is a precise process that has gone into a zombie state. The task does not kick off on the other box.
I am curious if anyone might be able to shed some light on doing a release upgrade on Ubuntu using Ansible.
If I ssh into the guest machine I can run it manually.
Cheers,
Paul