Created
July 31, 2019 20:15
-
-
Save Wicaeed/e5213f395d7e1ce4b258787d827497db to your computer and use it in GitHub Desktop.
assert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: get free disk capacity for mountpoint | |
assert: | |
that: | |
- not {{ item.mount == '/usr/local' and ( item.size_available < (free_disk_capacity_limit|int * 1024) ) }} | |
- not {{ item.mount == '/' and ( item.size_available < free_disk_capacity_limit|int ) }} | |
quiet: true | |
with_items: "{{ ansible_mounts }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment