From 74dfe047b87f48c52ab7eec3b13d1d68603f6347 Mon Sep 17 00:00:00 2001 From: Bertrand Lallau Date: Wed, 22 Mar 2017 22:23:08 +0100 Subject: [PATCH] Remove Ubuntu 14.04 related code Last Openstack version supported on Ubuntu 14.04 is Mitaka. Hence Ubuntu 14.04 related code can be safely remove from Ansible tasks since Kolla Newton release. Change-Id: I7202c1f6d21a2e6f3536c0420a7cc889aff0f5ed --- ansible/roles/neutron/tasks/precheck.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/ansible/roles/neutron/tasks/precheck.yml b/ansible/roles/neutron/tasks/precheck.yml index 6933c5203c..a5e751e659 100644 --- a/ansible/roles/neutron/tasks/precheck.yml +++ b/ansible/roles/neutron/tasks/precheck.yml @@ -34,16 +34,4 @@ - (inventory_hostname in groups['neutron-dhcp-agent'] or inventory_hostname in groups['neutron-l3-agent'] or inventory_hostname in groups['neutron-metadata-agent']) - - ansible_os_family == 'RedHat' - or (ansible_distribution == 'Ubuntu' and ansible_distribution_version > '14.04') - -- name: Checking if '/run' mount flag is set to 'shared' - command: awk '$5 == "/run" {print $7}' /proc/self/mountinfo - register: result - changed_when: false - failed_when: result.stdout.find('shared') == -1 - when: - - (inventory_hostname in groups['neutron-dhcp-agent'] - or inventory_hostname in groups['neutron-l3-agent'] - or inventory_hostname in groups['neutron-metadata-agent']) - - ansible_distribution == 'Ubuntu' and ansible_distribution_version == '14.04' + - ansible_os_family == 'RedHat' or ansible_distribution == 'Ubuntu'