# Updating to the Latest Ansible on Ubuntu

DevFeed: [Updating to the Latest Ansible on Ubuntu](<https://devfeed.tech/articles/updating-to-the-latest-ansible-on-ubuntu-28119.md>)

Original publisher: [Read original article](<http://fuzzyblog.io/blog/ansible/2019/11/15/updating-to-the-latest-ansible-on-ubuntu.html>)

Author: Fuzzygroup

Published: 2019-11-15T00:00:00Z

Content type: tutorial

Language: en

Sources: [Scott Johnson](<https://devfeed.tech/sources/scott-johnson.md>)

Topics: [Ansible](<https://devfeed.tech/topics/ansible.md>), [Ubuntu](<https://devfeed.tech/topics/ubuntu.md>), [apt](<https://devfeed.tech/topics/apt.md>), [systemd](<https://devfeed.tech/topics/systemd.md>)

Tags: [ansible](<https://devfeed.tech/tags/ansible.md>), [apt](<https://devfeed.tech/tags/apt.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [install](<https://devfeed.tech/tags/install.md>), [server](<https://devfeed.tech/tags/server.md>), [ubuntu](<https://devfeed.tech/tags/ubuntu.md>), [update](<https://devfeed.tech/tags/update.md>)

## AI overview

This tutorial explains how to update Ansible on Ubuntu when a newer Ansible feature, such as the systemd module's daemon_reexec parameter, is unsupported by the installed version. It provides commands using apt and the Ansible PPA.

## Source excerpt

One of the tricky bits about Ansible is that new features in the "language" always require the latest version of Ansible itself. And, while logical, this can easily bite you. Here's an example: TASK [deploy_hate-language-modeling_systemd_start : just force systemd to re-execute itself (2.8 and above)] *** fatal: [aws_master2]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (systemd) module: daemon_reexec Supported parameters include: daemon_reload, enabled, masked, name, no_block, state, user"} to retry, use: --limit @/home/ubuntu/ansible/playbook_deploy_hate-language-modeling_master.retry What that translates to is that Ansible itself doesn't know how to use the parameter daemon_reexec. And when you've been using an Ansible feature successfully and then it doesn't work on the server, that usually is a rock solid signal "update ansible". Here's how to do this on Ubuntu: sudo apt update sudo apt install software-properties-common sudo apt-add-repository --yes --update ppa:ansible/ansible sudo apt install ansible