From c182c4dc6694ee6e7f49cfa91f5d02ea306c072d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 4 Aug 2023 11:20:03 +0200 Subject: import some common roles --- roles/linux_status/tasks/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 roles/linux_status/tasks/main.yml (limited to 'roles/linux_status/tasks') diff --git a/roles/linux_status/tasks/main.yml b/roles/linux_status/tasks/main.yml new file mode 100644 index 0000000..766f009 --- /dev/null +++ b/roles/linux_status/tasks/main.yml @@ -0,0 +1,25 @@ +- name: Set up repository + become: true + block: + - name: Create keys directory + ansible.builtin.file: + path: '{{ keys_dir }}' + mode: '755' + state: directory + + - name: Add key + ansible.builtin.get_url: + url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x{{ gpg_key_id }}' + dest: '{{ keys_dir }}/linux-status.asc' + mode: '644' + + - name: Add repository + ansible.builtin.apt_repository: + repo: 'deb [signed-by={{ keys_dir }}/linux-status.asc] https://ppa.launchpadcontent.net/egor-tensin/linux-status/ubuntu focal main' + filename: linux-status + +- name: Install linux-status + become: true + ansible.builtin.apt: + install_recommends: false + name: linux-status -- cgit v1.2.3