Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
- name: Update the package cache
ansible.builtin.package:
update_cache: true
Comment on lines +2 to +4
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to keep the functionality generic here, in the event that aws/efs-utils ever offers pre-built packages for, e.g., RedHat platforms

5 changes: 4 additions & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ galaxy_info:
# OS family. This simplifies a lot of things for roles that support
# Kali Linux, so it makes sense to force the installation of Ansible
# 2.10 or newer.
min_ansible_version: "2.10"
#
# We use ansible.builtin.deb822_repository in this role (for
# Ubuntu), and this module was introduced in ansible-core 2.15.
min_ansible_version: "2.15"
namespace: cisagov
platforms:
- name: Amazon Linux
Expand Down
4 changes: 2 additions & 2 deletions tasks/install_Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
ansible.builtin.include_tasks: install_common.yml

- name: >-
Build deb packages from the aws/efs-utils code (Debian post-Bullseye,
Kali, and Ubuntu)
Build deb packages from the aws/efs-utils code (Debian post-Bullseye and
Kali)
# A dependency of aws/efs-utils (aws/aws-lc-rs) can only be built
# using gcc<=13. This is the reason for the params below. See here
# for more details:
Expand Down
32 changes: 32 additions & 0 deletions tasks/install_Ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
- name: Add official aws/efs-utils repo
block:
- name: Install prerequisites so apt can use DEB822 repos
ansible.builtin.package:
name:
- python3-debian

- name: Add the official aws/efs-utils repo
ansible.builtin.deb822_repository:
components:
- main
name: efs-utils
signed_by: https://amazon-efs-utils.aws.com/efs-utils-armored.gpg
suites:
- "{{ ansible_facts['distribution_version'] }}"
Comment on lines +10 to +16
Copy link
Copy Markdown
Member Author

@jsf9k jsf9k Jun 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see commit f824239.

uris:
- >-
https://amazon-efs-utils.aws.com/repo/deb/ubuntu/{{
ansible_facts['distribution_version'] }}
notify:
- Update the package cache

# We need the handler that updates the apt package cache to run
# now if it is necessary.
- name: Flush handlers
ansible.builtin.meta: flush_handlers
Comment on lines +9 to +27
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ansible-lint will complain about the suggested solution since it wants tasks that run on change to be in handlers.


- name: Install amazon-efs-utils
ansible.builtin.package:
name:
- amazon-efs-utils
22 changes: 0 additions & 22 deletions vars/Ubuntu_jammy.yml

This file was deleted.

Loading