From d8dccd9ea23d45cfbe3c3ab55a0c7052a99cabe2 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 19 May 2021 12:10:01 +0200 Subject: rename apt-repo github-containers to kubic-project --- roles/apt-repo/github-containers/files/repo.gpg | Bin 723 -> 0 bytes roles/apt-repo/github-containers/tasks/main.yml | 20 -------------------- roles/apt-repo/kubic-project/files/repo.gpg | Bin 0 -> 723 bytes roles/apt-repo/kubic-project/tasks/main.yml | 20 ++++++++++++++++++++ 4 files changed, 20 insertions(+), 20 deletions(-) delete mode 100644 roles/apt-repo/github-containers/files/repo.gpg delete mode 100644 roles/apt-repo/github-containers/tasks/main.yml create mode 100644 roles/apt-repo/kubic-project/files/repo.gpg create mode 100644 roles/apt-repo/kubic-project/tasks/main.yml (limited to 'roles/apt-repo') diff --git a/roles/apt-repo/github-containers/files/repo.gpg b/roles/apt-repo/github-containers/files/repo.gpg deleted file mode 100644 index 9b827ee8..00000000 Binary files a/roles/apt-repo/github-containers/files/repo.gpg and /dev/null differ diff --git a/roles/apt-repo/github-containers/tasks/main.yml b/roles/apt-repo/github-containers/tasks/main.yml deleted file mode 100644 index fae56380..00000000 --- a/roles/apt-repo/github-containers/tasks/main.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -- name: add repository key - copy: - src: repo.gpg - dest: /etc/apt/trusted.gpg.d/github-containers.gpg - register: apt_repo_github_containers_key - -- name: add repository entry - copy: - content: | - deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/{{ (ansible_distribution == 'Ubuntu') | ternary('xUbuntu', ansible_distribution) }}_{{ ansible_distribution_version }}/ / - dest: /etc/apt/sources.list.d/github-containers.list - register: apt_repo_github_containers_sources - -- name: update apt cache - when: apt_repo_github_containers_key is changed or - apt_repo_github_containers_sources is changed - command: apt-get update - args: - warn: false diff --git a/roles/apt-repo/kubic-project/files/repo.gpg b/roles/apt-repo/kubic-project/files/repo.gpg new file mode 100644 index 00000000..9b827ee8 Binary files /dev/null and b/roles/apt-repo/kubic-project/files/repo.gpg differ diff --git a/roles/apt-repo/kubic-project/tasks/main.yml b/roles/apt-repo/kubic-project/tasks/main.yml new file mode 100644 index 00000000..115d4060 --- /dev/null +++ b/roles/apt-repo/kubic-project/tasks/main.yml @@ -0,0 +1,20 @@ +--- +- name: add repository key + copy: + src: repo.gpg + dest: /etc/apt/trusted.gpg.d/kubic-project.gpg + register: apt_repo_kubic_project_key + +- name: add repository entry + copy: + content: | + deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/{{ (ansible_distribution == 'Ubuntu') | ternary('xUbuntu', ansible_distribution) }}_{{ ansible_distribution_version }}/ / + dest: /etc/apt/sources.list.d/kubic-project.list + register: apt_repo_kubic_project_sources + +- name: update apt cache + when: apt_repo_kubic_project_key is changed or + apt_repo_kubic_project_sources is changed + command: apt-get update + args: + warn: false -- cgit v1.2.3