aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/aws/tasks/ubuntu_noble.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'fdio.infra.ansible/roles/aws/tasks/ubuntu_noble.yaml')
-rw-r--r--fdio.infra.ansible/roles/aws/tasks/ubuntu_noble.yaml19
1 files changed, 19 insertions, 0 deletions
diff --git a/fdio.infra.ansible/roles/aws/tasks/ubuntu_noble.yaml b/fdio.infra.ansible/roles/aws/tasks/ubuntu_noble.yaml
new file mode 100644
index 0000000000..f99da4fdb0
--- /dev/null
+++ b/fdio.infra.ansible/roles/aws/tasks/ubuntu_noble.yaml
@@ -0,0 +1,19 @@
+---
+# file: tasks/ubuntu_noble.yaml
+
+- name: "Enable deb-src APT Repository"
+ ansible.builtin.apt_repository:
+ repo: "deb-src {{ packages_repo[ansible_distribution|lower][ansible_machine] }} noble main"
+ state: "present"
+ update_cache: true
+ tags:
+ - aws-enable-src-repo
+
+- name: "Update Package Cache (APT)"
+ ansible.builtin.apt:
+ update_cache: true
+ cache_valid_time: 3600
+ when:
+ - ansible_distribution == 'Ubuntu'
+ tags:
+ - aws-enable-src-repo \ No newline at end of file