Skip to content

Commit

Permalink
Remove jinja2 downgrade step - not sure if this is necessary...
Browse files Browse the repository at this point in the history
  • Loading branch information
philmcmahon committed Feb 11, 2025
1 parent 24cb1b1 commit f7a768d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 23 deletions.
1 change: 0 additions & 1 deletion roles/cdk-base/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
dependencies:
- aws-tools
- role: deep-learning-ami
- role: fluentbit
ubuntu_version: bionic
when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int == 18
Expand Down
3 changes: 0 additions & 3 deletions roles/deep-learning-ami/meta/main.yml

This file was deleted.

20 changes: 1 addition & 19 deletions roles/deep-learning-ami/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# In testing, we found that the deep learning AMI had unattended-upgrades enabled, which caused problems with the packer
# bake process, so let's remove it
# bake process (and occasionally with cloud-init), so let's remove it

# Stop unattended-upgrades
- name: Stop unattended-upgrades
Expand All @@ -15,21 +15,3 @@
name:
- unattended-upgrades
state: absent


# The deep learning AMI appears to come with a version of jinja2 that's incompatible with ansible. Let's remove it and
# ensure a compatible version is installed

- name: Remove jinja2
pip:
name:
- jinja2
state: absent
executable: pip3

- name: Install <3.1 version of jinja2
pip:
name:
- jinja2==3.0.3
state: present
executable: pip3

0 comments on commit f7a768d

Please sign in to comment.