From 074717f7ad0165a99311daa19871803d9fa7b0a1 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Thu, 30 Apr 2020 00:19:03 +0200 Subject: [PATCH] Ancora fix a script. Gestione cheese e thunderbird. --- roles/cheese/tasks/main.yml | 6 ++++++ roles/install/meta/main.yml | 1 + roles/thunderbird/tasks/main.yml | 7 +++++++ run.sh | 4 ++-- 4 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 roles/cheese/tasks/main.yml create mode 100644 roles/thunderbird/tasks/main.yml diff --git a/roles/cheese/tasks/main.yml b/roles/cheese/tasks/main.yml new file mode 100644 index 0000000..a6e0dd2 --- /dev/null +++ b/roles/cheese/tasks/main.yml @@ -0,0 +1,6 @@ +--- + +- apt: + name: cheese + state: present + when: hwpoints|int > 2 diff --git a/roles/install/meta/main.yml b/roles/install/meta/main.yml index 817efb2..a022d9e 100644 --- a/roles/install/meta/main.yml +++ b/roles/install/meta/main.yml @@ -4,6 +4,7 @@ dependencies: - googlechrome - chromium - firefox + - thunderbird - libreoffice - scribus - calibre diff --git a/roles/thunderbird/tasks/main.yml b/roles/thunderbird/tasks/main.yml new file mode 100644 index 0000000..8fbfc1f --- /dev/null +++ b/roles/thunderbird/tasks/main.yml @@ -0,0 +1,7 @@ +--- +- apt: + name: + - thunderbird + - thunderbird-locale-it + state: present + when: hwpoints|int >= 2 diff --git a/run.sh b/run.sh index 2e7188f..47c741a 100755 --- a/run.sh +++ b/run.sh @@ -1,5 +1,5 @@ #!/bin/bash -dpkg -l | grep python3-pip || apt -y install python3 python3-pip -which ansible || pip3 install ansible --system +dpkg -l | grep python3-pip >/dev/null || apt -y install python3 python3-pip +which ansible >/dev/null || pip3 install ansible --system ansible-playbook install.yml