From 5ed338add64eab493b169da23c11144bfc18efb6 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 1 Aug 2017 10:58:27 +0200 Subject: Reformat the yaml and limit the nfs mount to pkgs02 --- playbooks/groups/pkgs.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/playbooks/groups/pkgs.yml b/playbooks/groups/pkgs.yml index fa0f3c64e..e212edf3a 100644 --- a/playbooks/groups/pkgs.yml +++ b/playbooks/groups/pkgs.yml @@ -28,8 +28,14 @@ - git/hooks - git/checks - clamav - - { role: nfs/client, when: env != "staging", mnt_dir: '/srv/cache/lookaside', nfs_src_dir: 'fedora_sourcecache', nfs_mount_opts='rw,hard,bg,intr,noatime,nodev,nosuid,nfsvers=4' } - - { role: nfs/client, when: env == "staging", mnt_dir: '/srv/cache/lookaside_prod', nfs_src_dir: 'fedora_sourcecache', nfs_mount_opts='ro,hard,bg,intr,noatime,nodev,nosuid,nfsvers=4' } + - { role: nfs/client, + when: env != "staging", + mnt_dir: '/srv/cache/lookaside', + nfs_src_dir: 'fedora_sourcecache', nfs_mount_opts='rw,hard,bg,intr,noatime,nodev,nosuid,nfsvers=4' } + - { role: nfs/client, + when: env == "staging" and inventory_hostname.startswith('pkgs02'), + mnt_dir: '/srv/cache/lookaside_prod', + nfs_src_dir: 'fedora_sourcecache', nfs_mount_opts='ro,hard,bg,intr,noatime,nodev,nosuid,nfsvers=4' } - role: distgit tags: distgit - { role: hosts, when: env == "staging" } -- cgit