From 2a3aec90d699aeea114cdfb66675dd9a053c7f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20=C5=9Aliwka?= Date: Fri, 31 Aug 2018 21:32:13 +0200 Subject: [PATCH] Reduce flash wear on target device By default, ansible stores its temporary files in `$HOME/.ansible/tmp`. This causes many files to be created on target device's internal flash memory on every ansible run (even if run with --check or if there are no changes), wearing it unnecessarily. This commit changes default remote_tmp location to a directory mounted in RAM as tmpfs, so that the flash memory is not touched unless there is actual change in device's configuration. --- defaults/main.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 defaults/main.yml diff --git a/defaults/main.yml b/defaults/main.yml new file mode 100644 index 0000000..c027fec --- /dev/null +++ b/defaults/main.yml @@ -0,0 +1 @@ +ansible_remote_tmp: "/tmp/ansible" # Reduce flash wear on target device