mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-24 17:24:25 +01:00
fix: remove bogus task which does nothing
The command doesn't change anything on the system, and the registered variable `disk_usage` is never being used, moreover it gets overwritten by the next task.
This commit is contained in:
parent
abe4bbcc85
commit
11ece4a070
@ -3,10 +3,6 @@
|
|||||||
hosts: "{{ my_hosts | d([]) }}"
|
hosts: "{{ my_hosts | d([]) }}"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Get disk usage
|
|
||||||
ansible.builtin.command: df -h
|
|
||||||
register: disk_usage
|
|
||||||
|
|
||||||
- name: Check disk space available
|
- name: Check disk space available
|
||||||
ansible.builtin.shell: df -Ph / | awk 'NR==2 {print $5}'
|
ansible.builtin.shell: df -Ph / | awk 'NR==2 {print $5}'
|
||||||
register: disk_usage
|
register: disk_usage
|
||||||
|
Loading…
Reference in New Issue
Block a user