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: Install speedtest-cli ansible.builtin.package: name: speedtest-cli state: present - name: Run speedtest and save output to file ansible.builtin.command: cmd: speedtest-cli --json register: speedtest_output - name: Write speedtest results to a file ansible.builtin.copy: dest: /tmp/speedtest-results.json content: "{{ speedtest_output.stdout }}" - name: Check if speedtest results contain download speed ansible.builtin.set_fact: contains_download_speed: "{{ 'download' in speedtest_output.stdout }}" - name: Display a message if download speed is not available ansible.builtin.debug: msg: "The speedtest did not return a download speed." when: not contains_download_speed
Save
Regenerate Task Data
Back to List
Delete Task Definition
Loading...