Revert "Emergency fix to ansible" : reverting the changes.
This reverts commit fa523c636bb0b8446a9a827713731ae8c6de8090.
Change-Id: I1889d82ff36131b12514f36e6e1fd0d3806e0878
diff --git a/ansible/roles/common/tasks/main.yml b/ansible/roles/common/tasks/main.yml
index f3e3c3d..070972a 100644
--- a/ansible/roles/common/tasks/main.yml
+++ b/ansible/roles/common/tasks/main.yml
@@ -9,26 +9,13 @@
dest: /etc/hosts
regexp: "^{{ item.host_ip }}"
line: "{{ item.host_ip }} {{ item.host_name }}"
- with_items:
- - host_ip: "10.100.198.220"
- host_name: "voltha"
+ with_items: hosts
tags: [common]
- name: Latest apt packages
apt:
name: "{{ item }}"
- with_items:
- - debian-keyring
- - debian-archive-keyring
- - python-dev
- - libssl-dev
- - libffi-dev
- - libpcap-dev
- - python-virtualenv
- - jq
- - python-nose
- - python-flake8
- - python-scapy
+ with_items: use_latest_for
tags: [common]
- name: Services are not running
@@ -36,9 +23,7 @@
name: "{{ item }}"
state: stopped
ignore_errors: yes
- with_items:
- - puppet
- - checf-client
+ with_items: obsolete_services
tags: [common]
- name: Ensure known_hosts file is absent