From 18f1398aed1c7825db44abb40c0474ae6602bb04 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sat, 10 Oct 2015 19:30:03 +0000 Subject: [PATCH] Reorg this setup --- playbooks/groups/buildvm.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/playbooks/groups/buildvm.yml b/playbooks/groups/buildvm.yml index 48673afdcf..db0b08f2fb 100644 --- a/playbooks/groups/buildvm.yml +++ b/playbooks/groups/buildvm.yml @@ -18,10 +18,17 @@ roles: - base - hosts - - { role: nfs/client, when: not inventory_hostname.startswith('arm'), mnt_dir: '/mnt/fedora_koji', nfs_src_dir: 'fedora_koji' } - - { role: nfs/client, when: inventory_hostname.startswith('aarch64') , mnt_dir: '/mnt/fedora_koji', nfs_src_dir: 'fedora_arm/data' } - - { role: nfs/client, when: inventory_hostname.startswith('buildvm-ppc64') , mnt_dir: '/mnt/fedora_koji', nfs_src_dir: 'fedora_ppc/data' } - - { role: nfs/client, when: datacenter == 'staging', mnt_dir: '/mnt/fedora_koji', nfs_src_dir: 'fedora_koji' } + - { role: nfs/client, + when: ansible_architecture is 'x86_64' and not inventory_hostname.startswith('bkernel'), + mnt_dir: '/mnt/fedora_koji', nfs_src_dir: 'fedora_koji' } + - { role: nfs/client, + when: inventory_hostname.startswith('aarch64') , + mnt_dir: '/mnt/fedora_koji', nfs_src_dir: 'fedora_arm/data' } + - { role: nfs/client, + when: inventory_hostname.startswith('buildvm-ppc64') , + mnt_dir: '/mnt/fedora_koji', nfs_src_dir: 'fedora_ppc/data' } + - { role: nfs/client, + when: datacenter == 'staging', mnt_dir: '/mnt/fedora_koji', nfs_src_dir: 'fedora_koji' } - { role: fas_client, when: not inventory_hostname.startswith('bkernel') } - { role: sudo, when: not inventory_hostname.startswith('bkernel') } - koji_builder