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.
This commit is contained in:
Piotr Śliwka 2018-08-31 21:32:13 +02:00 committed by Simon Schuster
parent 09ef98d723
commit 2a3aec90d6

1
defaults/main.yml Normal file
View file

@ -0,0 +1 @@
ansible_remote_tmp: "/tmp/ansible" # Reduce flash wear on target device