Weekly recap

Hi all, just wanted to give a quick run-down of the changes we’ve implemented this week.

As you may have noticed, we did two small point releases this week to address small bugs found in 1.3, so the official version of Ansible is now 1.3.2. These bugs were:

  • A bug in accelerate mode, whereby the gather_facts step would always be run via sudo regardless of the play settings.

  • A bug in apt_repository module which caused the repository cache to not be updated.

  • A bug where “too many open files” errors would be encountered due to pseudo TTY’s not being closed properly.

  • The ControlPath variable for ssh connections is now configurable in ansible.cfg (and via the environment variable ANSIBLE_SSH_CONTROL_PATH). This helps avoid a bug where a very long default path can exceed the maximum allowed for socket files.

If you run into any of the above bugs, we recommend you upgrade to the latest release.

In the development branch, we’ve begun merging in new features and modules for 1.4, which includes some of the following:

  • A new failed_when option for tasks, which makes it easier to correctly determine a true failure or to ignore certain return codes from commands.

  • Added the “subelement” lookup plugin, which allows iteration of the keys of a dictionary or items in a list.

  • Swap the active user on a task in the middle of a play with the ‘remote_user’ parameter.

  • Added state=touch to the file module, which functions similarly to the command-line version of touch.

  • Added a -vvvv level of verbosity, which currently will show SSH client debugging information in the event of a failure.

  • Role names now show up in the line displaying the task name, to help show from what where the task originated.

New modules merged in so far:

  • cloud:ec2_eip – manage AWS elastic IP’s
  • cloud:rax_clb_nodes – manage Rackspace cloud load balancers
  • system: firewalld – manage firewalld configuration

Several of these new features still require some documentation updates in the manuals, which I will be working on ASAP.

Enjoy!