From 35b11ea2f9f0a930541bf77f582ea4857a5e1474 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Tue, 21 Jul 2015 15:09:23 -0400 Subject: [PATCH] format and mount the ephemeral filesystem Signed-off-by: Alfredo Deza --- ansible/slave.yml.j2 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ansible/slave.yml.j2 b/ansible/slave.yml.j2 index bcc7901c..30483081 100644 --- a/ansible/slave.yml.j2 +++ b/ansible/slave.yml.j2 @@ -50,6 +50,17 @@ - name: ensure the build dir exists file: path=/home/{{ jenkins_user }}/build state=directory owner={{ jenkins_user }} + - name: format /dev/vdb to ext4 + filesystem: fstype=ext4 dev=/dev/vdb + + - name: mount the ephemeral storage at the build dir + mount: + name: /home/jenkins-build/build + src: '/dev/vdb' + fstype: ext4 + opts: noatime + state: present + - name: copy the gnupg files to build/ synchronize: src=playbook/files/gnupg.ceph-release dest=/home/{{ jenkins_user }}/build/gnupg.ceph-release ignore_errors: true -- 2.39.5