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:
parent
09ef98d723
commit
2a3aec90d6
1 changed files with 1 additions and 0 deletions
1
defaults/main.yml
Normal file
1
defaults/main.yml
Normal file
|
@ -0,0 +1 @@
|
|||
ansible_remote_tmp: "/tmp/ansible" # Reduce flash wear on target device
|
Loading…
Add table
Reference in a new issue