summaryrefslogtreecommitdiffstats
path: root/roles/openshift_gcp_image_prep/tasks/main.yaml
blob: fee5ab618038569eec845566517c1a9205c86ec1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
# GCE instances are starting with xfs AND barrier=1, which is only for extfs.
- name: Remove barrier=1 from XFS fstab entries
  lineinfile:
    path: /etc/fstab
    regexp: '^(.+)xfs(.+?),?barrier=1,?(.*?)$'
    line: '\1xfs\2 \4'
    backrefs: yes

- name: Ensure the root filesystem has XFS group quota turned on
  lineinfile:
    path: /boot/grub2/grub.cfg
    regexp: '^(.*)linux16 (.*)$'
    line: '\1linux16 \2 rootflags=gquota'
    backrefs: yes

- name: Ensure the root partition grows on startup
  copy: src=partition.conf dest=/etc/systemd/system/google-instance-setup.service.d/