blob: 449cccb704ce0a6f6178a14800c8cadf429e2e1e [file] [log] [blame]
---
- hosts: 127.0.0.1
connection: local
remote_user: chrome-bot
become_user: root
become: yes
become_method: sudo
tasks:
- name: Remove read-write nfs rule for staging
lineinfile: dest=/etc/exports line="/opt/stage/root {{net}}/24(rw,sync,no_root_squash,no_subtree_check,fsid=2)" state=absent
- name: Add in read-only nfs rule
lineinfile: dest=/etc/exports line="/opt/stage/root {{net}}/24(ro,sync,no_root_squash,no_subtree_check,fsid=2)" state=present
- include: stop_serving_image.yml
vars:
nfs_mount_point: /opt/stage