From f7072ebace2099ef69ac2b41e613e3ef505b3cd8 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 15 Aug 2023 21:53:57 +0200 Subject: apt_ppa -> ppa --- roles/ppa/README.md | 3 +++ roles/ppa/tasks/main.yml | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 roles/ppa/README.md create mode 100644 roles/ppa/tasks/main.yml (limited to 'roles/ppa') diff --git a/roles/ppa/README.md b/roles/ppa/README.md new file mode 100644 index 0000000..f7ce92c --- /dev/null +++ b/roles/ppa/README.md @@ -0,0 +1,3 @@ +This role is used to enable an Ubuntu PPA repository; can be used on Debian as +well. It downloads the repository key and adds the repository in +/etc/apt/sources.list.d. diff --git a/roles/ppa/tasks/main.yml b/roles/ppa/tasks/main.yml new file mode 100644 index 0000000..01d6809 --- /dev/null +++ b/roles/ppa/tasks/main.yml @@ -0,0 +1,8 @@ +- name: Set up PPA repository + ansible.builtin.include_role: + name: apt_repo + vars: + apt_repo_name: '{{ ppa_name }}' + apt_repo_key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x{{ ppa_key }}' + apt_repo_url: 'https://ppa.launchpadcontent.net/{{ ppa_owner }}/{{ ppa_name }}/ubuntu' + apt_repo_distro: '{{ ppa_distro }}' -- cgit v1.2.3