aboutsummaryrefslogtreecommitdiff
path: root/tests/pre.yml
diff options
context:
space:
mode:
authorJeffrey Zhang <zhang.lei.fly@gmail.com>2017-10-20 13:50:21 +0800
committerJeffrey Zhang <zhang.lei.fly@gmail.com>2017-10-26 09:58:29 +0800
commitcdd125117f0ca65300b608734caa2eb36779fcea (patch)
tree14c197edc7e0a7a1cdb54d2996261c5375842821 /tests/pre.yml
parente2301f071717deb2a708c416cea8549dbdc07b02 (diff)
downloadkolla-ansible-cdd125117f0ca65300b608734caa2eb36779fcea.tar.gz
kolla-ansible-cdd125117f0ca65300b608734caa2eb36779fcea.zip
Optimize zuul v3 jobs
- move check container failure from post.yml to run.yml - add binary related jobs - use static kolla-ansible src dir, which is helpful for kolla project to use. - generate correct /etc/hosts by using private ip address and hostname - fix the wrong api interface in global.yml file Change-Id: Idfdee6dfe18f0fa2d4f984df59b57553122ce298
Diffstat (limited to 'tests/pre.yml')
-rw-r--r--tests/pre.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/pre.yml b/tests/pre.yml
index dd614b89c..e111d691a 100644
--- a/tests/pre.yml
+++ b/tests/pre.yml
@@ -2,6 +2,12 @@
vars:
logs_dir: "/tmp/logs"
tasks:
+ - name: Install dbus for debian system
+ apt: name=dbus
+ when:
+ - ansible_os_family == 'Debian'
+ become: true
+
- name: Ensure /tmp/logs/ dir
file:
path: "{{ logs_dir }}"
@@ -18,3 +24,8 @@
- "system_logs"
- "kolla"
- "ansible"
+
+ - name: set new hostname based on ansible inventory file
+ hostname:
+ name: "{{ inventory_hostname }}"
+ become: true