From 0ee98659615553ae2f224236fb3cc432fe6df29f Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 5 Dec 2016 17:31:45 +0000 Subject: [PATCH] Simplify this conditional for iptables. --- roles/base/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml index dd927ea416..6139c12e2a 100644 --- a/roles/base/tasks/main.yml +++ b/roles/base/tasks/main.yml @@ -230,7 +230,7 @@ - iptables/iptables.{{ host_group }} - iptables/iptables.{{ env }} - iptables/iptables - when: not inventory_hostname.startswith('fed-cloud09') or not inventory_hostname.startswith('osbs') + when: not inventory_hostname.startswith(('fed-cloud09','osbs') notify: - restart iptables - reload libvirtd