Change in osmo-ci[master]: ansible: fix deprecation of filter "| changed"

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

lynxis lazus gerrit-no-reply at lists.osmocom.org
Tue Jun 12 16:16:28 UTC 2018


lynxis lazus has submitted this change and it was merged. ( https://gerrit.osmocom.org/9498 )

Change subject: ansible: fix deprecation of filter "| changed"
......................................................................

ansible: fix deprecation of filter "| changed"

"| changed" filter will be removed in ansible 2.9

Change-Id: Idf11d54d60b78733ed212f04940cee15b3a55400
---
M ansible/roles/gsm-tester-bts/tasks/main.yml
M ansible/roles/gsm-tester-network/tasks/main.yml
M ansible/roles/udhcpd/tasks/main.yml
3 files changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Pau Espin Pedrol: Looks good to me, approved
  lynxis lazus: Verified



diff --git a/ansible/roles/gsm-tester-bts/tasks/main.yml b/ansible/roles/gsm-tester-bts/tasks/main.yml
index fa4bccd..e979605 100644
--- a/ansible/roles/gsm-tester-bts/tasks/main.yml
+++ b/ansible/roles/gsm-tester-bts/tasks/main.yml
@@ -27,7 +27,7 @@
   command: uhd_images_downloader
   args:
     creates: /usr/share/uhd/images
-  when: uhd_installed | changed
+  when: uhd_installed is changed
 
 - name: usrp allow jenkins to access
   user:
diff --git a/ansible/roles/gsm-tester-network/tasks/main.yml b/ansible/roles/gsm-tester-network/tasks/main.yml
index 0a023a7..210bf1e 100644
--- a/ansible/roles/gsm-tester-network/tasks/main.yml
+++ b/ansible/roles/gsm-tester-network/tasks/main.yml
@@ -8,4 +8,4 @@
 
 - name: start all network interface
   command: ifup -a
-  when: gsm_tester_network_interface | changed
+  when: gsm_tester_network_interface is changed
diff --git a/ansible/roles/udhcpd/tasks/main.yml b/ansible/roles/udhcpd/tasks/main.yml
index e444684..e1e7b36 100644
--- a/ansible/roles/udhcpd/tasks/main.yml
+++ b/ansible/roles/udhcpd/tasks/main.yml
@@ -22,7 +22,7 @@
 - name: systemctl daemon-reload
   systemd:
     daemon_reload: yes
-  when: udhcpdservice | changed
+  when: udhcpdservice is changed
 
 - name: ensure the systemd service is installed
   systemd:

-- 
To view, visit https://gerrit.osmocom.org/9498
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Idf11d54d60b78733ed212f04940cee15b3a55400
Gerrit-Change-Number: 9498
Gerrit-PatchSet: 2
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: lynxis lazus <lynxis at fe80.eu>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180612/d8eb380f/attachment.htm>


More information about the gerrit-log mailing list