- Step 1: Remove the old tmp space
service httpd stop
service mysql stop
rm -rf /usr/tmpDSK- Step 2, edit the script used to create tmp space
nano /scripts/securetmp| ## Configure eth0 | |
| # | |
| # vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
| DEVICE="eth0" | |
| NM_CONTROLLED="yes" | |
| ONBOOT=yes | |
| HWADDR=A4:BA:DB:37:F1:04 | |
| TYPE=Ethernet | |
| BOOTPROTO=static |
| # Add this snippet to the top of your playbook. | |
| # It will install python2 if missing (but checks first so no expensive repeated apt updates) | |
| # gwillem@gmail.com | |
| - hosts: all | |
| gather_facts: False | |
| tasks: | |
| - name: install python 2 | |
| raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) |
service httpd stop
service mysql stop
rm -rf /usr/tmpDSKnano /scripts/securetmpMy Elasticsearch cheatsheet with example usage via rest api (still a work-in-progress)