X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=fdio.infra.ansible%2Froles%2Faws%2Ftasks%2Fubuntu_jammy.yaml;h=5cc9fd3acf1e1db243478c76560ebebe4ef70c26;hb=7566d9fe1ff86a7dab3de09f9477e50d60a12dfc;hp=4ee1545bafba4d77a7a93371fb95a89f72edbe58;hpb=9feafea756fcdbd067fbc767ba16a8e3ecb6d6b2;p=csit.git diff --git a/fdio.infra.ansible/roles/aws/tasks/ubuntu_jammy.yaml b/fdio.infra.ansible/roles/aws/tasks/ubuntu_jammy.yaml index 4ee1545baf..5cc9fd3acf 100644 --- a/fdio.infra.ansible/roles/aws/tasks/ubuntu_jammy.yaml +++ b/fdio.infra.ansible/roles/aws/tasks/ubuntu_jammy.yaml @@ -1,10 +1,35 @@ --- -# file: roles/aws/tasks/ubuntu_jammy.yaml.yaml +# file: roles/aws/tasks/ubuntu_jammy.yaml - name: Enable deb-src APT Repository - apt_repository: + ansible.builtin.apt_repository: repo: "deb-src http://archive.ubuntu.com/ubuntu jammy main" state: "present" update_cache: true tags: - aws-enable-src-repo + +- name: Enable deb-src APT Repository Focal + ansible.builtin.apt_repository: + repo: "deb http://archive.ubuntu.com/ubuntu focal main" + state: "present" + update_cache: true + tags: + - aws-enable-src-repo + +- name: Enable deb-src APT Repository Focal Src + ansible.builtin.apt_repository: + repo: "deb-src http://archive.ubuntu.com/ubuntu focal 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