mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Clean df syntax, for each app's disk usage in iiab.ini
This commit is contained in:
		
							parent
							
								
									2d62b975bf
								
							
						
					
					
						commit
						3f63c0b4dd
					
				
					 47 changed files with 279 additions and 279 deletions
				
			
		| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record disk_space_a_priori (permanently, into {{ iiab_ini_file }} below) to later estimate iiab_software_disk_usage
 | 
					- name: Record disk_used_a_priori (permanently, into {{ iiab_ini_file }} below) to later estimate iiab_software_disk_usage
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# workaround for fact that auto create does not work on iiab_ini_file
 | 
					# workaround for fact that auto create does not work on iiab_ini_file
 | 
				
			||||||
| 
						 | 
					@ -28,7 +28,7 @@
 | 
				
			||||||
      value: "{{ iiab_base }}"
 | 
					      value: "{{ iiab_base }}"
 | 
				
			||||||
    - option: iiab_dir
 | 
					    - option: iiab_dir
 | 
				
			||||||
      value: "{{ iiab_dir }}"
 | 
					      value: "{{ iiab_dir }}"
 | 
				
			||||||
    - option: disk_space_a_priori
 | 
					    - option: disk_used_a_priori
 | 
				
			||||||
      value: "{{ df1.stdout }}"
 | 
					      value: "{{ df1.stdout }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'initial' variable values to {{ iiab_ini_file }}
 | 
					- name: Add 'initial' variable values to {{ iiab_ini_file }}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -42,20 +42,20 @@
 | 
				
			||||||
    name: pbx
 | 
					    name: pbx
 | 
				
			||||||
  when: pbx_install
 | 
					  when: pbx_install
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Read 'disk_space_a_priori' from /etc/iiab/iiab.ini
 | 
					- name: Read 'disk_used_a_priori' from /etc/iiab/iiab.ini
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
    df1: "{{ lookup('ansible.builtin.ini', 'disk_space_a_priori', section='summary', file=iiab_ini_file) }}"
 | 
					    df1: "{{ lookup('ansible.builtin.ini', 'disk_used_a_priori', section='summary', file=iiab_ini_file) }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record currently available disk space, to compare with original 'disk_space_a_priori'
 | 
					- name: Record currently used disk space, to compare with original 'disk_used_a_priori'
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add ESTIMATED 'iiab_software_disk_usage = {{ df1|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add ESTIMATED 'iiab_software_disk_usage = {{ df2.stdout|int - df1|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: summary
 | 
					    section: summary
 | 
				
			||||||
    option: iiab_software_disk_usage
 | 
					    option: iiab_software_disk_usage
 | 
				
			||||||
    value: "{{ df1|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Recording STAGE 9 HAS COMPLETED ====================
 | 
					- name: Recording STAGE 9 HAS COMPLETED ====================
 | 
				
			||||||
  lineinfile:
 | 
					  lineinfile:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -98,16 +98,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD AWStats AS INSTALLED
 | 
					# RECORD AWStats AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'awstats_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'awstats_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: awstats
 | 
					    section: awstats
 | 
				
			||||||
    option: awstats_disk_usage
 | 
					    option: awstats_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'awstats_installed: True'"
 | 
					- name: "Set 'awstats_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -25,8 +25,8 @@
 | 
				
			||||||
# 5. Run './runrole --reinstall azuracast' in /opt/iiab/iiab
 | 
					# 5. Run './runrole --reinstall azuracast' in /opt/iiab/iiab
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -107,16 +107,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD AzuraCast AS INSTALLED
 | 
					# RECORD AzuraCast AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'azuracast_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'azuracast_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: azuracast
 | 
					    section: azuracast
 | 
				
			||||||
    option: azuracast_disk_usage
 | 
					    option: azuracast_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'azuracast_installed: True'"
 | 
					- name: "Set 'azuracast_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -115,16 +115,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD Calibre-Web AS INSTALLED
 | 
					# RECORD Calibre-Web AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'calibreweb_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'calibreweb_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: calibre-web
 | 
					    section: calibre-web
 | 
				
			||||||
    option: calibreweb_disk_usage
 | 
					    option: calibreweb_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'calibreweb_installed: True'"
 | 
					- name: "Set 'calibreweb_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -84,16 +84,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 5. RECORD Calibre AS INSTALLED
 | 
					# 5. RECORD Calibre AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'calibre_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'calibre_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: calibre
 | 
					    section: calibre
 | 
				
			||||||
    option: calibre_disk_usage
 | 
					    option: calibre_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'calibre_installed: True'"
 | 
					- name: "Set 'calibre_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -56,16 +56,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD Captive Portal AS INSTALLED
 | 
					# RECORD Captive Portal AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'captiveportal_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'captiveportal_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: captiveportal
 | 
					    section: captiveportal
 | 
				
			||||||
    option: captiveportal_disk_usage
 | 
					    option: captiveportal_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'captiveportal_installed: True'"
 | 
					- name: "Set 'captiveportal_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,8 +2,8 @@
 | 
				
			||||||
# (OR ANY MEMBER OF LINUX GROUP 'lpadmin') AS SET UP BELOW...
 | 
					# (OR ANY MEMBER OF LINUX GROUP 'lpadmin') AS SET UP BELOW...
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -129,16 +129,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD CUPS AS INSTALLED
 | 
					# RECORD CUPS AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'cups_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'cups_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: cups
 | 
					    section: cups
 | 
				
			||||||
    option: cups_disk_usage
 | 
					    option: cups_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'cups_installed: True'"
 | 
					- name: "Set 'cups_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -110,16 +110,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 5. RECORD Gitea AS INSTALLED
 | 
					# 5. RECORD Gitea AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'gitea_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'gitea_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: gitea
 | 
					    section: gitea
 | 
				
			||||||
    option: gitea_disk_usage
 | 
					    option: gitea_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'gitea_installed: True'"
 | 
					- name: "Set 'gitea_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,8 +2,8 @@
 | 
				
			||||||
# https://github.com/iiab/iiab/blob/master/roles/iiab-admin/README.rst
 | 
					# https://github.com/iiab/iiab/blob/master/roles/iiab-admin/README.rst
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -40,16 +40,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD iiab-admin AS INSTALLED
 | 
					# RECORD iiab-admin AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'iiab_admin_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'iiab_admin_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: iiab-admin
 | 
					    section: iiab-admin
 | 
				
			||||||
    option: iiab_admin_disk_usage
 | 
					    option: iiab_admin_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'iiab_admin_installed: True'"
 | 
					- name: "Set 'iiab_admin_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -30,8 +30,8 @@
 | 
				
			||||||
    state: present
 | 
					    state: present
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,16 +69,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 4. RECORD Internet Archive AS INSTALLED
 | 
					# 4. RECORD Internet Archive AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'internetarchive_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'internetarchive_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: internetarchive
 | 
					    section: internetarchive
 | 
				
			||||||
    option: internetarchive_disk_usage
 | 
					    option: internetarchive_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'internetarchive_installed: True'"
 | 
					- name: "Set 'internetarchive_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,8 +13,8 @@
 | 
				
			||||||
  when: nodejs_installed is undefined
 | 
					  when: nodejs_installed is undefined
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -109,16 +109,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD JupyterHub AS INSTALLED
 | 
					# RECORD JupyterHub AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'jupyterhub_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'jupyterhub_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: jupyterhub
 | 
					    section: jupyterhub
 | 
				
			||||||
    option: jupyterhub_disk_usage
 | 
					    option: jupyterhub_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'jupyterhub_installed: True'"
 | 
					- name: "Set 'jupyterhub_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -110,16 +110,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD KA Lite AS INSTALLED
 | 
					# RECORD KA Lite AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'kalite_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'kalite_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: kalite
 | 
					    section: kalite
 | 
				
			||||||
    option: kalite_disk_usage
 | 
					    option: kalite_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'kalite_installed: True'"
 | 
					- name: "Set 'kalite_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -6,8 +6,8 @@
 | 
				
			||||||
  when: kiwix_arch == "unsupported"
 | 
					  when: kiwix_arch == "unsupported"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -123,16 +123,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 5. RECORD Kiwix AS INSTALLED
 | 
					# 5. RECORD Kiwix AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'kiwix_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'kiwix_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: kiwix
 | 
					    section: kiwix
 | 
				
			||||||
    option: kiwix_disk_usage
 | 
					    option: kiwix_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'kiwix_installed: True'"
 | 
					- name: "Set 'kiwix_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -23,8 +23,8 @@
 | 
				
			||||||
# https://kolibri.readthedocs.io/en/latest/install/provision.html
 | 
					# https://kolibri.readthedocs.io/en/latest/install/provision.html
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -214,16 +214,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD Kolibri AS INSTALLED
 | 
					# RECORD Kolibri AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'kolibri_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'kolibri_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: kolibri
 | 
					    section: kolibri
 | 
				
			||||||
    option: kolibri_disk_usage
 | 
					    option: kolibri_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'kolibri_installed: True'"
 | 
					- name: "Set 'kolibri_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,8 +2,8 @@
 | 
				
			||||||
# https://github.com/iiab/iiab/blob/master/roles/www_base/templates/iiab-refresh-wiki-docs.sh#L51-L52
 | 
					# https://github.com/iiab/iiab/blob/master/roles/www_base/templates/iiab-refresh-wiki-docs.sh#L51-L52
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -138,16 +138,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD Lokole AS INSTALLED
 | 
					# RECORD Lokole AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'lokole_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'lokole_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: lokole
 | 
					    section: lokole
 | 
				
			||||||
    option: lokole_disk_usage
 | 
					    option: lokole_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'lokole_installed: True'"
 | 
					- name: "Set 'lokole_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,8 +12,8 @@
 | 
				
			||||||
# fatal: [127.0.0.1]: FAILED! => {"cache_control": "private, no-cache, no-store", "changed": false, "connection": "close", "content_type": "text/html; charset=utf-8", "date": "Wed, 15 Jun 2022 05:07:41 GMT", "elapsed": 0, "expires": "Thu, 19 Nov 1981 08:52:00 GMT", "msg": "Status code was 500 and not [200]: HTTP Error 500: Internal Server Error", "pragma": "no-cache", "redirected": false, "server": "nginx/1.18.0 (Ubuntu)", "set_cookie": "MATOMO_SESSID=psak3aem27vrdrt8t2f016600f; path=/; HttpOnly; SameSite=Lax", "status": 500, "transfer_encoding": "chunked", "url": "http://box.lan/matomo/index.php?action=welcome", "x_matomo_request_id": "fbfd2"}
 | 
					# fatal: [127.0.0.1]: FAILED! => {"cache_control": "private, no-cache, no-store", "changed": false, "connection": "close", "content_type": "text/html; charset=utf-8", "date": "Wed, 15 Jun 2022 05:07:41 GMT", "elapsed": 0, "expires": "Thu, 19 Nov 1981 08:52:00 GMT", "msg": "Status code was 500 and not [200]: HTTP Error 500: Internal Server Error", "pragma": "no-cache", "redirected": false, "server": "nginx/1.18.0 (Ubuntu)", "set_cookie": "MATOMO_SESSID=psak3aem27vrdrt8t2f016600f; path=/; HttpOnly; SameSite=Lax", "status": 500, "transfer_encoding": "chunked", "url": "http://box.lan/matomo/index.php?action=welcome", "x_matomo_request_id": "fbfd2"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -244,16 +244,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD Matomo AS INSTALLED
 | 
					# RECORD Matomo AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'matomo_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'matomo_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: matomo
 | 
					    section: matomo
 | 
				
			||||||
    option: matomo_disk_usage
 | 
					    option: matomo_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'matomo_installed: True'"
 | 
					- name: "Set 'matomo_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -100,16 +100,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD MediaWiki AS INSTALLED
 | 
					# RECORD MediaWiki AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'mediawiki_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'mediawiki_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: mediawiki
 | 
					    section: mediawiki
 | 
				
			||||||
    option: mediawiki_disk_usage
 | 
					    option: mediawiki_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'mediawiki_installed: True'"
 | 
					- name: "Set 'mediawiki_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -40,16 +40,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD Minetest AS INSTALLED
 | 
					# RECORD Minetest AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'minetest_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'minetest_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: minetest
 | 
					    section: minetest
 | 
				
			||||||
    option: minetest_disk_usage
 | 
					    option: minetest_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'minetest_installed: True'"
 | 
					- name: "Set 'minetest_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,8 +4,8 @@
 | 
				
			||||||
# https://www.mongodb.com/docs/manual/installation/
 | 
					# https://www.mongodb.com/docs/manual/installation/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -372,16 +372,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 3. RECORD MongoDB AS INSTALLED
 | 
					# 3. RECORD MongoDB AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'mongodb_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'mongodb_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: mongodb
 | 
					    section: mongodb
 | 
				
			||||||
    option: mongodb_disk_usage
 | 
					    option: mongodb_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'mongodb_installed: True'"
 | 
					- name: "Set 'mongodb_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -40,16 +40,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD Monit AS INSTALLED
 | 
					# RECORD Monit AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'monit_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'monit_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: monit
 | 
					    section: monit
 | 
				
			||||||
    option: monit_disk_usage
 | 
					    option: monit_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'monit_installed: True'"
 | 
					- name: "Set 'monit_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -17,8 +17,8 @@
 | 
				
			||||||
    name: postgresql
 | 
					    name: postgresql
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -194,16 +194,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD Moodle AS INSTALLED
 | 
					# RECORD Moodle AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'moodle_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'moodle_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: moodle
 | 
					    section: moodle
 | 
				
			||||||
    option: moodle_disk_usage
 | 
					    option: moodle_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'moodle_installed: True'"
 | 
					- name: "Set 'moodle_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -37,16 +37,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD Mosquitto AS INSTALLED
 | 
					# RECORD Mosquitto AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'mosquitto_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'mosquitto_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: mosquitto
 | 
					    section: mosquitto
 | 
				
			||||||
    option: mosquitto_disk_usage
 | 
					    option: mosquitto_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'mosquitto_installed: True'"
 | 
					- name: "Set 'mosquitto_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -49,16 +49,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD Munin AS INSTALLED
 | 
					# RECORD Munin AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'munin_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'munin_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: munin
 | 
					    section: munin
 | 
				
			||||||
    option: munin_disk_usage
 | 
					    option: munin_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'munin_installed: True'"
 | 
					- name: "Set 'munin_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -66,16 +66,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD MySQL AS INSTALLED
 | 
					# RECORD MySQL AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'mysql_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'mysql_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: mysql
 | 
					    section: mysql
 | 
				
			||||||
    option: mysql_disk_usage
 | 
					    option: mysql_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'mysql_installed: True'"
 | 
					- name: "Set 'mysql_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -106,16 +106,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD Network AS INSTALLED
 | 
					# RECORD Network AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'network_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'network_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: network
 | 
					    section: network
 | 
				
			||||||
    option: network_disk_usage
 | 
					    option: network_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'network_installed: True'"
 | 
					- name: "Set 'network_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -124,16 +124,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD Nextcloud AS INSTALLED
 | 
					# RECORD Nextcloud AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'nextcloud_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'nextcloud_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: nextcloud
 | 
					    section: nextcloud
 | 
				
			||||||
    option: nextcloud_disk_usage
 | 
					    option: nextcloud_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'nextcloud_installed: True'"
 | 
					- name: "Set 'nextcloud_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -71,16 +71,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD NGINX AS INSTALLED
 | 
					# RECORD NGINX AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'nginx_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'nginx_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: nginx
 | 
					    section: nginx
 | 
				
			||||||
    option: nginx_disk_usage
 | 
					    option: nginx_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'nginx_installed: True'"
 | 
					- name: "Set 'nginx_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,8 +2,8 @@
 | 
				
			||||||
# https://github.com/iiab/iiab/blob/master/roles/www_base/templates/iiab-refresh-wiki-docs.sh#L51-L52
 | 
					# https://github.com/iiab/iiab/blob/master/roles/www_base/templates/iiab-refresh-wiki-docs.sh#L51-L52
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -170,16 +170,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 3. RECORD Node.js AS INSTALLED
 | 
					# 3. RECORD Node.js AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'nodejs_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'nodejs_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: nodejs
 | 
					    section: nodejs
 | 
				
			||||||
    option: nodejs_disk_usage
 | 
					    option: nodejs_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'nodejs_installed: True'"
 | 
					- name: "Set 'nodejs_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -23,8 +23,8 @@
 | 
				
			||||||
#  when: nodejs_version != "12.x"
 | 
					#  when: nodejs_version != "12.x"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -143,16 +143,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD Node-RED AS INSTALLED
 | 
					# RECORD Node-RED AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'nodered_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'nodered_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: nodered
 | 
					    section: nodered
 | 
				
			||||||
    option: nodered_disk_usage
 | 
					    option: nodered_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'nodered_installed: True'"
 | 
					- name: "Set 'nodered_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -105,16 +105,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD OpenVPN AS INSTALLED
 | 
					# RECORD OpenVPN AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'openvpn_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'openvpn_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: openvpn
 | 
					    section: openvpn
 | 
				
			||||||
    option: openvpn_disk_usage
 | 
					    option: openvpn_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'openvpn_installed: True'"
 | 
					- name: "Set 'openvpn_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -201,16 +201,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD OSM Vector Maps AS INSTALLED
 | 
					# RECORD OSM Vector Maps AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'osm_vector_maps_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'osm_vector_maps_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: osm-vector-maps
 | 
					    section: osm-vector-maps
 | 
				
			||||||
    option: osm_vector_maps_disk_usage
 | 
					    option: osm_vector_maps_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'osm_vector_maps_installed: True'"
 | 
					- name: "Set 'osm_vector_maps_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -22,8 +22,8 @@
 | 
				
			||||||
#   when: nodejs_version != "12.x"
 | 
					#   when: nodejs_version != "12.x"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -49,16 +49,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD PBX AS INSTALLED
 | 
					# RECORD PBX AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'pbx_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'pbx_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: pbx
 | 
					    section: pbx
 | 
				
			||||||
    option: pbx_disk_usage
 | 
					    option: pbx_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'pbx_installed: True'"
 | 
					- name: "Set 'pbx_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -53,16 +53,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD phpMyAdmin AS INSTALLED
 | 
					# RECORD phpMyAdmin AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'phpmyadmin_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'phpmyadmin_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: phpmyadmin
 | 
					    section: phpmyadmin
 | 
				
			||||||
    option: phpmyadmin_disk_usage
 | 
					    option: phpmyadmin_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'phpmyadmin_installed: True'"
 | 
					- name: "Set 'phpmyadmin_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -95,16 +95,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD PostgreSQL AS INSTALLED
 | 
					# RECORD PostgreSQL AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'postgresql_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'postgresql_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: postgresql
 | 
					    section: postgresql
 | 
				
			||||||
    option: postgresql_disk_usage
 | 
					    option: postgresql_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'postgresql_installed: True'"
 | 
					- name: "Set 'postgresql_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -18,16 +18,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD pylibs AS INSTALLED
 | 
					# RECORD pylibs AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'pylibs_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'pylibs_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: pylibs
 | 
					    section: pylibs
 | 
				
			||||||
    option: pylibs_disk_usage
 | 
					    option: pylibs_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'pylibs_installed: True'"
 | 
					- name: "Set 'pylibs_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -129,16 +129,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD remote.it AS INSTALLED
 | 
					# RECORD remote.it AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'remoteit_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'remoteit_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: remoteit
 | 
					    section: remoteit
 | 
				
			||||||
    option: remoteit_disk_usage
 | 
					    option: remoteit_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'remoteit_installed: True'"
 | 
					- name: "Set 'remoteit_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -36,16 +36,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD Samba AS INSTALLED
 | 
					# RECORD Samba AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'samba_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'samba_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: samba
 | 
					    section: samba
 | 
				
			||||||
    option: samba_disk_usage
 | 
					    option: samba_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'samba_installed: True'"
 | 
					- name: "Set 'samba_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,8 +10,8 @@
 | 
				
			||||||
# 2) Use Ansible handler to reload ssh?
 | 
					# 2) Use Ansible handler to reload ssh?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -47,16 +47,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD sshd AS INSTALLED
 | 
					# RECORD sshd AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'sshd_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'sshd_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: sshd
 | 
					    section: sshd
 | 
				
			||||||
    option: sshd_disk_usage
 | 
					    option: sshd_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'sshd_installed: True'"
 | 
					- name: "Set 'sshd_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -27,8 +27,8 @@
 | 
				
			||||||
#  when: nodejs_version != "12.x"
 | 
					#  when: nodejs_version != "12.x"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -237,16 +237,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 6. RECORD Sugarizer AS INSTALLED
 | 
					# 6. RECORD Sugarizer AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'sugarizer_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'sugarizer_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: sugarizer
 | 
					    section: sugarizer
 | 
				
			||||||
    option: sugarizer_disk_usage
 | 
					    option: sugarizer_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'sugarizer_installed: True'"
 | 
					- name: "Set 'sugarizer_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -59,16 +59,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD Transmission AS INSTALLED
 | 
					# RECORD Transmission AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'transmission_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'transmission_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: transmission
 | 
					    section: transmission
 | 
				
			||||||
    option: transmission_disk_usage
 | 
					    option: transmission_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'transmission_installed: True'"
 | 
					- name: "Set 'transmission_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,8 +8,8 @@
 | 
				
			||||||
# https://github.com/rbrito/usbmount/blob/master/usbmount.conf (2010-04-25)
 | 
					# https://github.com/rbrito/usbmount/blob/master/usbmount.conf (2010-04-25)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -93,16 +93,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD 'USB_LIB' AS INSTALLED
 | 
					# RECORD 'USB_LIB' AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'usb_lib_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'usb_lib_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: usb_lib
 | 
					    section: usb_lib
 | 
				
			||||||
    option: usb_lib_disk_usage
 | 
					    option: usb_lib_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'usb_lib_installed: True'"
 | 
					- name: "Set 'usb_lib_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -47,16 +47,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD vnStat AS INSTALLED
 | 
					# RECORD vnStat AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'vnstat_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'vnstat_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: vnstat
 | 
					    section: vnstat
 | 
				
			||||||
    option: vnstat_disk_usage
 | 
					    option: vnstat_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'vnstat_installed: True'"
 | 
					- name: "Set 'vnstat_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,8 +12,8 @@
 | 
				
			||||||
# can arise without warning when WordPress is online, since WordPress ~4.8
 | 
					# can arise without warning when WordPress is online, since WordPress ~4.8
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -140,16 +140,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD WordPress AS INSTALLED
 | 
					# RECORD WordPress AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'wordpress_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'wordpress_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: wordpress
 | 
					    section: wordpress
 | 
				
			||||||
    option: wordpress_disk_usage
 | 
					    option: wordpress_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'wordpress_installed: True'"
 | 
					- name: "Set 'wordpress_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,8 +2,8 @@
 | 
				
			||||||
# Role "www_options" runs later, likely in 4-SERVER-OPTIONS.
 | 
					# Role "www_options" runs later, likely in 4-SERVER-OPTIONS.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -60,16 +60,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD www_base AS INSTALLED
 | 
					# RECORD www_base AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'www_base_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'www_base_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: www_base
 | 
					    section: www_base
 | 
				
			||||||
    option: www_base_disk_usage
 | 
					    option: www_base_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'www_base_installed: True'"
 | 
					- name: "Set 'www_base_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,8 +2,8 @@
 | 
				
			||||||
# Role "www_options" runs here, probably in 4-SERVER-OPTIONS.
 | 
					# Role "www_options" runs here, probably in 4-SERVER-OPTIONS.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -124,16 +124,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD www_options AS INSTALLED
 | 
					# RECORD www_options AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'www_options_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'www_options_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: www_options
 | 
					    section: www_options
 | 
				
			||||||
    option: www_options_disk_usage
 | 
					    option: www_options_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'www_options_installed: True'"
 | 
					- name: "Set 'www_options_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
- name: Record (initial) available disk space
 | 
					- name: Record (initial) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df1
 | 
					  register: df1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -45,16 +45,16 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# RECORD Yarn AS INSTALLED
 | 
					# RECORD Yarn AS INSTALLED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Record (final) available disk space
 | 
					- name: Record (final) disk space used
 | 
				
			||||||
  shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
 | 
					  shell: df -B1 --output=used / | tail -1
 | 
				
			||||||
  register: df2
 | 
					  register: df2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add 'yarn_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
 | 
					- name: Add 'yarn_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
 | 
				
			||||||
  ini_file:
 | 
					  ini_file:
 | 
				
			||||||
    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
					    path: "{{ iiab_ini_file }}"    # /etc/iiab/iiab.ini
 | 
				
			||||||
    section: yarn
 | 
					    section: yarn
 | 
				
			||||||
    option: yarn_disk_usage
 | 
					    option: yarn_disk_usage
 | 
				
			||||||
    value: "{{ df1.stdout|int - df2.stdout|int }}"
 | 
					    value: "{{ df2.stdout|int - df1.stdout|int }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'yarn_installed: True'"
 | 
					- name: "Set 'yarn_installed: True'"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue