From 6072a49adb33f2bce3f48b9c7b8be7d96cf8501c Mon Sep 17 00:00:00 2001 From: liyuenan Date: Thu, 22 Dec 2016 16:59:08 +0800 Subject: Update ansible version JIRA: COMPASS-511 Change-Id: Id0e83c65a08c9f9036b5d3a597b905e8a7bde6e8 Signed-off-by: liyuenan --- deploy/adapters/ansible/roles/common/tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'deploy/adapters/ansible/roles/common/tasks/main.yml') diff --git a/deploy/adapters/ansible/roles/common/tasks/main.yml b/deploy/adapters/ansible/roles/common/tasks/main.yml index 1fa0de84..0e19c004 100644 --- a/deploy/adapters/ansible/roles/common/tasks/main.yml +++ b/deploy/adapters/ansible/roles/common/tasks/main.yml @@ -41,7 +41,7 @@ - name: install packages action: "{{ ansible_pkg_mgr }} name={{ item }} state=latest update_cache=yes" - with_items: packages | union(packages_noarch) + with_items: "{{ packages | union(packages_noarch) }}" - name: make config template dir exist file: path=/opt/os_templates state=directory mode=0755 @@ -57,7 +57,7 @@ - name: install pip packages pip: name={{ item }} state=present extra_args='--pre' - with_items: pip_packages + with_items: "{{ pip_packages }}" - name: install keyczar for accelerate pip: name=python-keyczar state=present extra_args='--pre' @@ -82,11 +82,11 @@ - name: restart services service: name={{ item }} state=restarted enabled=yes - with_items: services| union(services_noarch) + with_items: "{{ services| union(services_noarch) }}" - name: write services to monitor list lineinfile: dest=/opt/service create=yes line='{{ item }}' - with_items: services| union(services_noarch) + with_items: "{{ services| union(services_noarch) }}" - name: kill daemon for accelerate shell: lsof -ni :5099|grep LISTEN|awk '{print $2}'|xargs kill -9 -- cgit 1.2.3-korg