Skip to content

Commit

Permalink
display disk usage after all tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
capsulecorplab committed Mar 20, 2024
1 parent af45699 commit 15533a4
Showing 1 changed file with 105 additions and 0 deletions.
105 changes: 105 additions & 0 deletions playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@
lineinfile:
path: "/etc/skel/.profile"
line: 'export PS1="\[\033[00;32m\][\w]\$\[\033[00m\] "'
- name: Get disk usage
shell: df -h
register: disk_usage
- name: Display disk usage
debug:
msg: "{{ disk_usage.stdout }}"


# Handlers: the list of handlers that are executed as a notify
# key from a task
Expand Down Expand Up @@ -66,6 +73,13 @@
apt:
name: build-essential
update_cache: yes
- name: Get disk usage
shell: df -h
register: disk_usage
- name: Display disk usage
debug:
msg: "{{ disk_usage.stdout }}"


#-
# # Install zlib
Expand Down Expand Up @@ -104,6 +118,13 @@
apt:
name: libssl-dev
update_cache: yes
- name: Get disk usage
shell: df -h
register: disk_usage
- name: Display disk usage
debug:
msg: "{{ disk_usage.stdout }}"


#-
# # Install doctools
Expand Down Expand Up @@ -280,6 +301,13 @@
fail:
msg: "prusa-slicer Error: Expected {{ prusaslicer_dir }} | Found {{ installed_prusaslicer_version.stdout }}"
when: installed_prusaslicer_version.stdout != prusaslicer_dir
- name: Get disk usage
shell: df -h
register: disk_usage
- name: Display disk usage
debug:
msg: "{{ disk_usage.stdout }}"


-
# install NodeJs
Expand Down Expand Up @@ -330,6 +358,13 @@
fail:
msg: "Yarn Version Error: Expected {{ yarn_version }} | Found {{ installed_yarn_version.stdout }}"
when: installed_yarn_version.stdout != yarn_version
- name: Get disk usage
shell: df -h
register: disk_usage
- name: Display disk usage
debug:
msg: "{{ disk_usage.stdout }}"


roles:
- role: grzegorznowak.nvm_node
Expand Down Expand Up @@ -368,6 +403,13 @@
shell: mv /home/kasm-default-profile/hugo_extended_{{ hugo_version }}_Linux-64bit/hugo /usr/local/bin
- name: Delete Hugo temp directory
shell: rm -rf /home/kasm-default-profile/hugo_extended_{{ hugo_version }}_Linux-64bit
- name: Get disk usage
shell: df -h
register: disk_usage
- name: Display disk usage
debug:
msg: "{{ disk_usage.stdout }}"


-
# add default user to dialout group
Expand All @@ -388,6 +430,13 @@
groups: "dialout"
state: present
remove: yes
- name: Get disk usage
shell: df -h
register: disk_usage
- name: Display disk usage
debug:
msg: "{{ disk_usage.stdout }}"


-
# install Arduino 1.8.19
Expand Down Expand Up @@ -490,6 +539,13 @@
fail:
msg: "Arduino-ESP32 Version Error: Expected {{ arduino_esp32_version }} | Found {{ installed_arduino_esp32_version.stdout }}"
when: installed_arduino_esp32_version.stdout != arduino_esp32_version
- name: Get disk usage
shell: df -h
register: disk_usage
- name: Display disk usage
debug:
msg: "{{ disk_usage.stdout }}"


-
# install firefox
Expand Down Expand Up @@ -587,6 +643,13 @@
get_url:
url: https://gist.githubusercontent.com/capsulecorplab/401ba2fe0857a328f2a626adbf078cc6/raw/b89a6234f0d620ff60bcfe37f95de197b8772377/.gitconfig
dest: /home/kasm-default-profile/
- name: Get disk usage
shell: df -h
register: disk_usage
- name: Display disk usage
debug:
msg: "{{ disk_usage.stdout }}"


-
# install KiCad
Expand Down Expand Up @@ -618,6 +681,13 @@
fail:
msg: "KiCad Version Error: Expected {{ kicad_version }} | Found {{ installed_kicad_version.stdout }}"
when: installed_kicad_version.stdout != kicad_version
- name: Get disk usage
shell: df -h
register: disk_usage
- name: Display disk usage
debug:
msg: "{{ disk_usage.stdout }}"


-
# install FreeCAD
Expand Down Expand Up @@ -672,6 +742,13 @@
shell: ln -srv /opt/FreeCAD/FreeCAD_{{ freecad_version }}-{{ freecad_release_date }}-conda-Linux-x86_64-py310.AppImage /usr/local/bin/freecad
- name: Configure FreeCAD desktop shortcut
shell: echo "[Desktop Entry]\nName=FreeCAD\nGenericName=FreeCAD\nExec=/usr/local/bin/freecad\nIcon=/opt/FreeCAD/freecad-icon-16.png\nTerminal=false\nType=Application\nStartupNotify=false\nCategories=Application;Development;" > /usr/share/applications/freecad.desktop
- name: Get disk usage
shell: df -h
register: disk_usage
- name: Display disk usage
debug:
msg: "{{ disk_usage.stdout }}"


-
# install Python packages with pip
Expand Down Expand Up @@ -705,6 +782,13 @@
- jinja2==3.1.2
- linkml==1.4.1
- jinja2-cli==0.8.2
- name: Get disk usage
shell: df -h
register: disk_usage
- name: Display disk usage
debug:
msg: "{{ disk_usage.stdout }}"


# roles:
# - role: geerlingguy.pip
Expand All @@ -723,6 +807,13 @@
path: "/etc/sudoers"
line: "Defaults env_keep += \"DONT_PROMPT_WSL_INSTALL\""
when: wsl2_environment
- name: Get disk usage
shell: df -h
register: disk_usage
- name: Display disk usage
debug:
msg: "{{ disk_usage.stdout }}"


-
# add dev user to give vs code somewhere to install extensions
Expand All @@ -733,6 +824,13 @@
user:
name: dev
uid: 1002
- name: Get disk usage
shell: df -h
register: disk_usage
- name: Display disk usage
debug:
msg: "{{ disk_usage.stdout }}"


-
# install the remainder of the tools
Expand Down Expand Up @@ -775,6 +873,13 @@
name: dev
state: absent
remove: yes
- name: Get disk usage
shell: df -h
register: disk_usage
- name: Display disk usage
debug:
msg: "{{ disk_usage.stdout }}"


# Three dots indicate the end of a YAML document
...

0 comments on commit 15533a4

Please sign in to comment.