aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/common/tasks
diff options
context:
space:
mode:
authorcarey.xu <carey.xuhan@huawei.com>2015-12-04 09:52:09 +0800
committercarey.xu <carey.xuhan@huawei.com>2015-12-04 13:16:03 +0800
commit34775089845b92c3f852afd668122df2c0407a05 (patch)
treee00b5c9bf5e3a3b1f3fb46d9b6c5049fc47c2730 /deploy/adapters/ansible/roles/common/tasks
parent5de09de80aac43e61ec411ad598e8cd915d9cadd (diff)
put memcached installation first
JIRA: COMPASS-178 Change-Id: I1b85ff33f6cd73875c2c10f526948a84b3350660 Signed-off-by: carey.xu <carey.xuhan@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/common/tasks')
-rw-r--r--deploy/adapters/ansible/roles/common/tasks/main.yml15
1 files changed, 3 insertions, 12 deletions
diff --git a/deploy/adapters/ansible/roles/common/tasks/main.yml b/deploy/adapters/ansible/roles/common/tasks/main.yml
index 3097d092..d4247ce5 100644
--- a/deploy/adapters/ansible/roles/common/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/common/tasks/main.yml
@@ -21,11 +21,8 @@
echo "# compass" >> /etc/hosts
echo {{ COMPASS_SERVER.stdout_lines[0] }} {{ name.stdout_lines[0] }} >> /etc/hosts
-- name: first update pkgs
- shell: "{{ ansible_pkg_mgr }} update"
-
- name: install packages
- action: "{{ ansible_pkg_mgr }} name={{ item }} state=latest"
+ action: "{{ ansible_pkg_mgr }} name={{ item }} state=latest update_cache=yes"
with_items: packages | union(packages_noarch)
- name: make config template dir exist
@@ -44,9 +41,6 @@
- name: update ntp conf
template: src=ntp.conf dest=/etc/ntp.conf backup=yes
-- name: stop ntp
- service: name={{ ntp_service }} state=stopped enabled=yes
-
- name: use ntpdate once for initial sync time
shell: ntpdate {{ ntp_server }}
ignore_errors: True
@@ -55,9 +49,6 @@
shell: hwclock --systohc
ignore_errors: True
-- name: restart ntp
- service: name={{ ntp_service }} state=restarted enabled=yes
-
-- name: restart openvswitch
+- name: restart services
service: name={{ item }} state=restarted enabled=yes
- with_items: services
+ with_items: services| union(services_noarch)