From 234683e49c63d3e194410cc4a7d50549b8b91aed Mon Sep 17 00:00:00 2001 From: Daan Selen Date: Fri, 10 Jan 2025 12:26:58 +0100 Subject: [PATCH] Learning git... stopped tracking examples directory. --- examples/aggregate_example.yaml | 31 ---------------------------- examples/apt_update_example.yaml | 12 ----------- examples/apt_upgrade_example.yaml | 18 ---------------- examples/echo_example.yaml | 9 -------- examples/variable_usage_example.yaml | 18 ---------------- 5 files changed, 88 deletions(-) delete mode 100644 examples/aggregate_example.yaml delete mode 100644 examples/apt_update_example.yaml delete mode 100644 examples/apt_upgrade_example.yaml delete mode 100644 examples/echo_example.yaml delete mode 100644 examples/variable_usage_example.yaml diff --git a/examples/aggregate_example.yaml b/examples/aggregate_example.yaml deleted file mode 100644 index d8758be..0000000 --- a/examples/aggregate_example.yaml +++ /dev/null @@ -1,31 +0,0 @@ ---- -name: Echo some text in the terminal of the device -group: "Dev" -variables: - - name: package_manager - value: "apt" - - name: google_dns - value: "8.8.8.8" - - name: "quad9_dns" - value: "9.9.9.9" -tasks: - - name: refresh the cache - command: "{{ package_manager }} update" - - - name: display available upgrades - command: "{{ package_manager }} list --upgradable" - - - name: apply upgrades - command: "{{ package_manager }} upgrade -y" - - - name: cleanup remaining packages - command: "{{ package_manager }} autoremove -y" - - - name: run autoclean - command: "{{ package_manager }} autoclean -y" - - - name: Ping Google DNS - command: "ping {{ google_dns }} -c 4" - - - name: Ping Quad9 DNS - command: "ping {{ quad9_dns }} -c 4" diff --git a/examples/apt_update_example.yaml b/examples/apt_update_example.yaml deleted file mode 100644 index 332e081..0000000 --- a/examples/apt_update_example.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: Refresh the apt cache -device: Cubic -variables: - - name: package_manager - value: "apt" -tasks: - - name: refresh the cache - command: "{{ package_manager }} update" - - - name: display available upgrades - command: "{{ package_manager }} list --upgradable" \ No newline at end of file diff --git a/examples/apt_upgrade_example.yaml b/examples/apt_upgrade_example.yaml deleted file mode 100644 index 649b800..0000000 --- a/examples/apt_upgrade_example.yaml +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: Refresh the apt cache -group: "Dev" -variables: - - name: package_manager - value: "apt" -tasks: - - name: refresh the cache - command: "{{ package_manager }} update" - - - name: display available upgrades - command: "{{ package_manager }} list --upgradable" - - - name: apply upgrades - command: "{{ package_manager }} upgrade -y" - - - name: cleanup remaining packages - command: "{{ package_manager }} autoremove -y" \ No newline at end of file diff --git a/examples/echo_example.yaml b/examples/echo_example.yaml deleted file mode 100644 index a64d151..0000000 --- a/examples/echo_example.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -name: Echo a string to the terminal through the meshbook example. -group: "Dev" -variables: - - name: file - value: "/etc/os-release" -tasks: - - name: Echo! - command: "echo $(cat {{ file }})" \ No newline at end of file diff --git a/examples/variable_usage_example.yaml b/examples/variable_usage_example.yaml deleted file mode 100644 index 0092773..0000000 --- a/examples/variable_usage_example.yaml +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: Ping Multiple Points -group: "Kubernetes" -variables: - - name: host1 - value: "1.1.1.1" - - name: host2 - value: "9.9.9.9" - - name: command1 - value: "ping" - - name: cmd_arguments - value: "-c 4" -tasks: - - name: Ping host1 - command: "{{ command1 }} {{ host1 }} {{ cmd_arguments }}" - - - name: Ping host2 - command: "{{ command1 }} {{ host2 }} {{ cmd_arguments }}" \ No newline at end of file