We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8cee6be + 3f47996 commit 49e060fCopy full SHA for 49e060f
ansible/playbooks/rustc-perf.yml
@@ -124,6 +124,17 @@
124
daemon_reload: yes
125
become: yes
126
127
+ - name: Disable swap for current session
128
+ command: swapoff -a
129
+ become: true
130
+
131
+ - name: Disable swap permanently, persist reboots
132
+ replace:
133
+ path: /etc/fstab
134
+ regexp: '^(\s*)([^#\n]+\s+)(\w+\s+)swap(\s+.*)$'
135
+ replace: '#\1\2\3swap\4'
136
+ backup: yes
137
138
# Periodically clean old entries in /tmp
139
- name: Configure systemd-tmpfiles to clean old /tmp dirs
140
copy:
0 commit comments