1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

Merge pull request #3592 from holta/df

Record approx disk usage for 45 roles (to iiab.ini)
This commit is contained in:
A Holt 2023-05-27 04:42:23 -04:00 committed by GitHub
commit 1f2d0102a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
48 changed files with 734 additions and 11 deletions

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: 'Install package: awstats'
package:
name: awstats
@ -93,6 +98,17 @@
# RECORD AWStats AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'awstats_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: awstats
option: awstats_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'awstats_installed: True'"
set_fact:
awstats_installed: True

View file

@ -25,6 +25,11 @@
# 5. Run './runrole --reinstall azuracast' in /opt/iiab/iiab
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: AzuraCast - Make config directory {{ azuracast_host_dir }}
file:
path: "{{ azuracast_host_dir }}"
@ -102,6 +107,17 @@
# RECORD AzuraCast AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'azuracast_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: azuracast
option: azuracast_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'azuracast_installed: True'"
set_fact:
azuracast_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: "Install packages: imagemagick, python3-netifaces"
package:
name:
@ -110,6 +115,17 @@
# RECORD Calibre-Web AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'calibreweb_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: calibre-web
option: calibreweb_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'calibreweb_installed: True'"
set_fact:
calibreweb_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
# 1. APT INSTALL CALIBRE 4.12+ or 5.12+ (calibre, calibredb, calibre-server etc) ON ALL OS'S
- name: "Install OS's latest packages: calibre, calibre-bin"
@ -79,6 +84,17 @@
# 5. RECORD Calibre AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'calibre_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: calibre
option: calibre_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'calibre_installed: True'"
set_fact:
calibre_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: "Install packages: python3-dateutil, python3-jinja2"
package:
name:
@ -51,6 +56,17 @@
# RECORD Captive Portal AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'captiveportal_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: captiveportal
option: captiveportal_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'captiveportal_installed: True'"
set_fact:
captiveportal_installed: True

View file

@ -2,6 +2,11 @@
# (OR ANY MEMBER OF LINUX GROUP 'lpadmin') AS SET UP BELOW...
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: Install 'cups' package
package:
name: cups
@ -124,6 +129,17 @@
# RECORD CUPS AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'cups_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: cups
option: cups_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'cups_installed: True'"
set_fact:
cups_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
# 1. Prepare to install Gitea: create user and directory structure
- name: Shut down existing Gitea instance (if we're reinstalling)
@ -105,6 +110,17 @@
# 5. RECORD Gitea AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'gitea_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: gitea
option: gitea_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'gitea_installed: True'"
set_fact:
gitea_installed: True

View file

@ -27,7 +27,7 @@
- include_tasks: enable-or-disable.yml
- name: Add 'gitea' to list of services at {{ iiab_ini_file }}
- name: Add 'gitea' variable values to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: gitea

View file

@ -2,6 +2,11 @@
# https://github.com/iiab/iiab/blob/master/roles/iiab-admin/README.rst
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: "Install text-mode packages, useful during remote access: lynx, screen"
package:
name:
@ -35,6 +40,17 @@
# RECORD iiab-admin AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'iiab_admin_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: iiab-admin
option: iiab_admin_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'iiab_admin_installed: True'"
set_fact:
iiab_admin_installed: True

View file

@ -30,6 +30,11 @@
state: present
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
# 2. CREATE 2 DIRS, WIPE /opt/iiab/internetarchive/node_modules & RUN YARN
- name: mkdir {{ internetarchive_dir }}
@ -64,6 +69,17 @@
# 4. RECORD Internet Archive AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'internetarchive_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: internetarchive
option: internetarchive_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'internetarchive_installed: True'"
set_fact:
internetarchive_installed: True

View file

@ -13,6 +13,11 @@
when: nodejs_installed is undefined
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: "Install package: python3-psutil"
package:
name: python3-psutil
@ -104,6 +109,17 @@
# RECORD JupyterHub AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'jupyterhub_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: jupyterhub
option: jupyterhub_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'jupyterhub_installed: True'"
set_fact:
jupyterhub_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: Download {{ kalite_requirements }} to {{ pip_packages_dir }}/kalite.txt
get_url:
url: "{{ kalite_requirements }}"
@ -105,6 +110,17 @@
# RECORD KA Lite AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'kalite_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: kalite
option: kalite_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'kalite_installed: True'"
set_fact:
kalite_installed: True

View file

@ -6,6 +6,11 @@
when: kiwix_arch == "unsupported"
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
# 1. PUT IN PLACE: /opt/iiab/downloads/kiwix-tools_linux-*.tar.gz, move /opt/iiab/kiwix/bin aside if nec, create essential dirs, and test.zim if nec (library.xml is created later, by enable-or-disable.yml)
# 2022-10-04: get_url might be removed in future (unarchive below can handle
@ -118,6 +123,17 @@
# 5. RECORD Kiwix AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'kiwix_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: kiwix
option: kiwix_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'kiwix_installed: True'"
set_fact:
kiwix_installed: True

View file

@ -23,6 +23,11 @@
# https://kolibri.readthedocs.io/en/latest/install/provision.html
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: Create Linux user {{ kolibri_user }} and add it to groups {{ apache_user }}, disk
user:
name: "{{ kolibri_user }}"
@ -209,6 +214,17 @@
# RECORD Kolibri AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'kolibri_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: kolibri
option: kolibri_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'kolibri_installed: True'"
set_fact:
kolibri_installed: True

View file

@ -2,6 +2,11 @@
# https://github.com/iiab/iiab/blob/master/roles/www_base/templates/iiab-refresh-wiki-docs.sh#L51-L52
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: Install 12 packages for Lokole
apt:
name:
@ -133,6 +138,17 @@
# RECORD Lokole AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'lokole_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: lokole
option: lokole_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'lokole_installed: True'"
set_fact:
lokole_installed: True

View file

@ -12,6 +12,11 @@
# 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
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
# https://matomo.org/faq/on-premise/matomo-requirements/
- name: Install Matomo's recommended PHP extensions
package:
@ -239,6 +244,17 @@
# RECORD Matomo AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'matomo_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: matomo
option: matomo_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'matomo_installed: True'"
set_fact:
matomo_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
# https://www.mediawiki.org/wiki/Manual:Installation_requirements#PHP
- name: 'Install packages: php{{ php_version }}-intl, php{{ php_version }}-mbstring, php{{ php_version }}-xml'
package:
@ -95,6 +100,17 @@
# RECORD MediaWiki AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'mediawiki_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: mediawiki
option: mediawiki_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'mediawiki_installed: True'"
set_fact:
mediawiki_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: Check for Minetest world file ({{ minetest_world_dir }}/world.mt)
stat:
path: "{{ minetest_world_dir }}/world.mt"
@ -7,9 +12,6 @@
file:
state: directory
path: /library/games
# owner: root
# group: root
# mode: '0755'
- include_tasks: minetest_install.yml
when: not minetest_world.stat.exists
@ -35,8 +37,20 @@
url: https://content.minetest.net/packages/sfan5/worldedit/releases/13367/download/
when: minetest_default_game == "minetest"
# RECORD Minetest AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'minetest_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: minetest
option: minetest_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'minetest_installed: True'"
set_fact:
minetest_installed: True

View file

@ -4,6 +4,11 @@
# https://www.mongodb.com/docs/manual/installation/
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
# 1. INSTALL MongoDB PACKAGES AND/OR BINARIES
# 2019-02-02: Sugarizer with Node.js 10.x requires MongoDB 2.6+ so
@ -367,6 +372,17 @@
# 3. RECORD MongoDB AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'mongodb_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: mongodb
option: mongodb_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'mongodb_installed: True'"
set_fact:
mongodb_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: Install 'monit' package
package:
name: monit
@ -35,6 +40,17 @@
# RECORD Monit AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'monit_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: monit
option: monit_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'monit_installed: True'"
set_fact:
monit_installed: True

View file

@ -17,6 +17,11 @@
name: postgresql
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
# 2021-07-02: Let's monitor & learn from these 2 pages year-by-year:
# https://docs.moodle.org/19/en/PHP_settings_by_Moodle_version#PHP_Extensions_and_libraries
# https://github.com/moodlebox/moodlebox/blob/master/roles/packages/vars/main.yml
@ -189,6 +194,17 @@
# RECORD Moodle AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'moodle_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: moodle
option: moodle_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'moodle_installed: True'"
set_fact:
moodle_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: "Install packages: mosquitto, mosquitto-clients"
package:
name: "{{ item }}"
@ -32,6 +37,17 @@
# RECORD Mosquitto AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'mosquitto_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: mosquitto
option: mosquitto_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'mosquitto_installed: True'"
set_fact:
mosquitto_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
# SEE ALSO roles/network/tasks/install.yml
- name: TEMPORARILY REVERT net.ipv6.conf.all.disable_ipv6 to 0 in /etc/sysctl.conf for #3434
sysctl:
@ -44,6 +49,17 @@
# RECORD Munin AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'munin_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: munin
option: munin_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'munin_installed: True'"
set_fact:
munin_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: 'Install MySQL packages: mariadb-server, mariadb-client, php{{ php_version }}-mysql, python3-pymysql'
package:
name:
@ -61,6 +66,17 @@
# RECORD MySQL AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'mysql_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: mysql
option: mysql_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'mysql_installed: True'"
set_fact:
mysql_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
# 2022-03-16: 'apt show <pkg> | grep Size' revealed download sizes, on 64-bit RasPiOS with desktop.
- name: Install dnsmasq -- configure LATER in 'network', after Stage 9
@ -101,6 +106,17 @@
# RECORD Network AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'network_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: network
option: network_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'network_installed: True'"
set_fact:
network_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
# CHECK FOR PHP VERSION AUTOMATICALLY, TO DETERMINE WHICH NEXTCLOUD TO INSTALL.
# INSPIRED BY: github.com/iiab/iiab/blob/master/roles/nodejs/tasks/main.yml
@ -119,6 +124,17 @@
# RECORD Nextcloud AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'nextcloud_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: nextcloud
option: nextcloud_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'nextcloud_installed: True'"
set_fact:
nextcloud_installed: True

View file

@ -31,7 +31,7 @@
- name: Add 'nextcloud' variable values to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: Nextcloud
section: nextcloud
option: "{{ item.option }}"
value: "{{ item.value | string }}"
with_items:

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: Stop & Disable '{{ apache_service }}' systemd service, in case it exists
systemd:
name: "{{ apache_service }}" # apache2 or httpd, per /opt/iiab/iiab/vars/<OS>.yml
@ -66,6 +71,17 @@
# RECORD NGINX AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'nginx_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: nginx
option: nginx_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'nginx_installed: True'"
set_fact:
nginx_installed: True

View file

@ -1,3 +1,12 @@
# Lokole PDF (User's Guide) gets copied for offline use (http://box/info) here:
# https://github.com/iiab/iiab/blob/master/roles/www_base/templates/iiab-refresh-wiki-docs.sh#L51-L52
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
# 1. TEST IF Node.js ALEADY INSTALLED & IF SO WARN IT'LL BE REPLACED
# 2019-02-03: BELOW TESTS IF 'nodejs' VERSION IS ALREADY INSTALLED:
@ -161,6 +170,17 @@
# 3. RECORD Node.js AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'nodejs_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: nodejs
option: nodejs_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'nodejs_installed: True'"
set_fact:
nodejs_installed: True

View file

@ -23,6 +23,11 @@
# when: nodejs_version != "12.x"
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
# BRUTAL but ensures consistency across OS's / distros like Raspbian Desktop &
# Ubermix that often include an older version of Node-RED. Brutal, as this
# removes customizations on graphical desktop OS's e.g. Raspbian Desktop's:
@ -138,6 +143,17 @@
# RECORD Node-RED AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'nodered_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: nodered
option: nodered_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'nodered_installed: True'"
set_fact:
nodered_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: "Install packages: ncat, nmap, openvpn, sudo"
package:
name:
@ -100,6 +105,17 @@
# RECORD OpenVPN AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'openvpn_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: openvpn
option: openvpn_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'openvpn_installed: True'"
set_fact:
openvpn_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: "Install packages for map installation: python3-geojson, python3-pil, python3-wget, php{{ php_version }}-sqlite3 (can also be installed by www_base/tasks/php-stem.yml)"
package:
state: present
@ -196,6 +201,17 @@
# RECORD OSM Vector Maps AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'osm_vector_maps_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: osm-vector-maps
option: osm_vector_maps_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'osm_vector_maps_installed: True'"
set_fact:
osm_vector_maps_installed: True

View file

@ -22,6 +22,11 @@
# when: nodejs_version != "12.x"
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
# 2021-08-09: Moved to roles/pbx/tasks/apache.yml
# - name: "Set 'apache_install: True' and 'apache_enabled: True'"
@ -44,6 +49,17 @@
# RECORD PBX AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'pbx_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: pbx
option: pbx_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'pbx_installed: True'"
set_fact:
pbx_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: Download {{ phpmyadmin_dl_url }} to {{ downloads_dir }}
get_url:
url: "{{ phpmyadmin_dl_url }}" # e.g. https://files.phpmyadmin.net/phpMyAdmin/5.0.4/phpMyAdmin-5.0.4-all-languages.zip
@ -48,6 +53,17 @@
# RECORD phpMyAdmin AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'phpmyadmin_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: phpmyadmin
option: phpmyadmin_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'phpmyadmin_installed: True'"
set_fact:
phpmyadmin_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: 'Install packages: postgresql, postgresql-client, python3-psycopg2'
package:
name:
@ -90,6 +95,17 @@
# RECORD PostgreSQL AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'postgresql_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: postgresql
option: postgresql_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'postgresql_installed: True'"
set_fact:
postgresql_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: Install iiab lib files
template:
src: "{{ item.src }}"
@ -13,6 +18,17 @@
# RECORD pylibs AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'pylibs_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: pylibs
option: pylibs_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'pylibs_installed: True'"
set_fact:
pylibs_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
# - name: Fail if architecture remoteit_device_suffix == "unknown"
# fail:
# msg: "Could not find a remote.it Device Package (.deb) for CPU architecture \"{{ ansible_architecture }}\""
@ -124,6 +129,17 @@
# RECORD remote.it AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'remoteit_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: remoteit
option: remoteit_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'remoteit_installed: True'"
set_fact:
remoteit_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: "Create smb user: {{ smbuser }}"
user:
name: "{{ smbuser }}"
@ -31,6 +36,17 @@
# RECORD Samba AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'samba_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: samba
option: samba_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'samba_installed: True'"
set_fact:
samba_installed: True

View file

@ -9,6 +9,12 @@
#
# 2) Use Ansible handler to reload ssh?
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: "Install ssh daemon using package: {{ sshd_package }}"
package:
name: "{{ sshd_package }}"
@ -41,6 +47,17 @@
# RECORD sshd AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'sshd_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: sshd
option: sshd_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'sshd_installed: True'"
set_fact:
sshd_installed: True

View file

@ -27,6 +27,11 @@
# when: nodejs_version != "12.x"
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
# 2. DOWNLOAD+LINK /opt/iiab/sugarizer
- name: Clone llaske/sugarizer ({{ sugarizer_git_version }} branch/version) from GitHub to /opt/iiab/{{ sugarizer_dir_version }} (DOWNLOADS ~740 MB)
@ -232,6 +237,17 @@
# 6. RECORD Sugarizer AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'sugarizer_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: sugarizer
option: sugarizer_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'sugarizer_installed: True'"
set_fact:
sugarizer_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: "Install BitTorrent packages: transmission-daemon, transmission-cli"
package:
name:
@ -55,6 +60,17 @@
# RECORD Transmission AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'transmission_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: transmission
option: transmission_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'transmission_installed: True'"
set_fact:
transmission_installed: True

View file

@ -7,6 +7,12 @@
# https://github.com/rbrito/usbmount/blob/master/README.md (2018-08-10)
# https://github.com/rbrito/usbmount/blob/master/usbmount.conf (2010-04-25)
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: Does systemd-udevd.service exist
stat:
path: "{{ systemd_location }}/systemd-udevd.service"
@ -87,6 +93,17 @@
# RECORD 'USB_LIB' AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'usb_lib_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: usb_lib
option: usb_lib_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'usb_lib_installed: True'"
set_fact:
usb_lib_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: Install 'vnstat' package
package:
name: vnstat
@ -42,6 +47,17 @@
# RECORD vnStat AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'vnstat_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: vnstat
option: vnstat_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'vnstat_installed: True'"
set_fact:
vnstat_installed: True

View file

@ -12,6 +12,15 @@
# can arise without warning when WordPress is online, since WordPress ~4.8
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: Provision MySQL DB
include_tasks: setup.yml
# 2021-06-29: PHP modules, covering "RECOMMENDED" and "OPTIONAL" sections here:
# https://make.wordpress.org/hosting/handbook/server-environment/
- name: Install libsodium23 + 8 PHP packages (run 'php -m' or 'php -i' to verify)
@ -131,6 +140,17 @@
# RECORD WordPress AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'wordpress_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: wordpress
option: wordpress_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'wordpress_installed: True'"
set_fact:
wordpress_installed: True

View file

@ -23,19 +23,13 @@
- block:
- name: Provision MySQL DB for WordPress, if 'wordpress_installed' not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml
include_tasks: setup.yml
when: wordpress_installed is undefined # and not installing
- name: Install WordPress if 'wordpress_installed' not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml
include_tasks: install.yml
when: wordpress_installed is undefined
- name: Enable/Disable/Restart NGINX
include_tasks: nginx.yml
- name: Add 'wordpress' variable values to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini

View file

@ -1,6 +1,12 @@
# Role "www_base" runs here, probably in 3-BASE-SERVER.
# Role "www_options" runs later, likely in 4-SERVER-OPTIONS.
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
# 2021-06-27: Antifragile roles can become less brittle by fully declaring
# their own dependencies (i.e. for modularity, separation-of-concerns,
# encapsulation, compartmentalization, scope sanity, etc).
@ -54,6 +60,17 @@
# RECORD www_base AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'www_base_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: www_base
option: www_base_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'www_base_installed: True'"
set_fact:
www_base_installed: True

View file

@ -2,6 +2,11 @@
# Role "www_options" runs here, probably in 4-SERVER-OPTIONS.
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
# HOMEPAGE
- name: Create dir {{ doc_root }}{{ iiab_home_url }} just in case variable iiab_home_url was customized. (Standard path {{doc_root}}/home was created earlier.)
@ -119,6 +124,17 @@
# RECORD www_options AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'www_options_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: www_options
option: www_options_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'www_options_installed: True'"
set_fact:
www_options_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df1
- name: Yarn | Download apt key to /usr/share/keyrings/yarn.gpg
shell: curl https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarn.gpg
@ -40,6 +45,17 @@
# RECORD Yarn AS INSTALLED
- name: Record (final) available disk space
shell: df -PB1 $(findmnt / -o SOURCE -n) | awk 'NR==2 {print $4}'
register: df2
- name: Add 'yarn_disk_usage = {{ df1.stdout|int - df2.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: yarn
option: yarn_disk_usage
value: "{{ df1.stdout|int - df2.stdout|int }}"
- name: "Set 'yarn_installed: True'"
set_fact:
yarn_installed: True