Login
Default
Home
Containers
Host Nodes
Tasks
Definitions
Toggle theme
Light
Dark
Auto
Edit Task Definition
Task Name
Enter the name of the task.
Goal
Describe the goal you want to achieve, such as 'Install Nginx and start the service.'
Task Data (JSON)
- name: Ensure sysstat is installed ansible.builtin.apt: name: sysstat state: present update_cache: yes - name: Ensure vmstat is installed ansible.builtin.apt: name: procps state: present update_cache: yes - name: Gather CPU and memory usage with vmstat ansible.builtin.shell: vmstat 1 5 register: vmstat_output - name: Display CPU and memory usage ansible.builtin.debug: var: vmstat_output.stdout_lines - name: Gather disk usage information ansible.builtin.shell: df -h register: disk_usage - name: Display disk usage ansible.builtin.debug: var: disk_usage.stdout_lines - name: Gather detailed I/O statistics ansible.builtin.shell: iostat -xtc 1 3 register: iostat_output when: ansible_facts.os_family == "Debian" - name: Display I/O statistics ansible.builtin.debug: var: iostat_output.stdout_lines
Save
Regenerate Task Data
Back to List
Delete Task Definition
Loading...