diff options
author | Pierre-Yves Chibon <pingou@pingoured.fr> | 2017-08-01 10:58:27 +0200 |
---|---|---|
committer | Pierre-Yves Chibon <pingou@pingoured.fr> | 2017-08-01 10:59:16 +0200 |
commit | 5ed338add64eab493b169da23c11144bfc18efb6 (patch) | |
tree | d9324c276a34cb25d67b411466abc119837af744 | |
parent | 8b60f0325831157d7b57a7328a045bbf4dfd8280 (diff) | |
download | ansible-5ed338add64eab493b169da23c11144bfc18efb6.tar.gz ansible-5ed338add64eab493b169da23c11144bfc18efb6.tar.xz ansible-5ed338add64eab493b169da23c11144bfc18efb6.zip |
Reformat the yaml and limit the nfs mount to pkgs02
-rw-r--r-- | playbooks/groups/pkgs.yml | 10 |
1 files 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" } |