summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBengt Thuree <bthuree@linuxfoundation.org>2022-10-13 12:50:30 +1100
committerBengt Thuree <bthuree@linuxfoundation.org>2022-10-13 13:17:45 +1100
commit737eca2056b46ce680e42fee619bdf244b022268 (patch)
tree2c7dae9f8fca70380a2e1365b399ede555dfa2df
parentfb285eb982fa35d9fbebc971cf1a733d426b0dfc (diff)
Chore: Add enchant package for Ubuntu 18.04
Issue-ID: CIMAN-33 Signed-off-by: Bengt Thuree <bthuree@linuxfoundation.org> Change-Id: I3c1fb78226a9f6a40ff48ab1fe21aa54e3c6001d
-rw-r--r--packer/provision/local-builder.yaml13
1 files changed, 11 insertions, 2 deletions
diff --git a/packer/provision/local-builder.yaml b/packer/provision/local-builder.yaml
index 4882fffb5..fa969d51f 100644
--- a/packer/provision/local-builder.yaml
+++ b/packer/provision/local-builder.yaml
@@ -139,14 +139,23 @@
become: true
when: ansible_distribution == 'Ubuntu'
- - name: Install enchant2 package for Ubuntu
+ - name: Install enchant2 package for Ubuntu 20.04
apt:
name:
- enchant-2
update_cache: yes
state: present
become: true
- when: ansible_distribution == 'Ubuntu'
+ when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04'
+
+ - name: Install enchant package for Ubuntu 18.04
+ apt:
+ name:
+ - enchant
+ update_cache: yes
+ state: present
+ become: true
+ when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
- name: Install enchant2 package for CentOS
dnf: