From 1c5eb3fc64bd228d2d6efd3abd60ab9bd1a2f12b Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Mon, 20 Feb 2023 22:31:36 +0100 Subject: [PATCH] put distribution release as host variable to accomodate linux mint --- inventory/host_vars/self.yml | 1 + roles/alacritty/tasks/main.yml | 2 +- roles/neovim/tasks/main.yml | 2 +- roles/nicotine/tasks/main.yml | 2 +- roles/strawberry/tasks/main.yml | 2 +- roles/system/tasks/main.yml | 2 +- roles/virtualbox/tasks/main.yml | 2 +- 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/inventory/host_vars/self.yml b/inventory/host_vars/self.yml index f11b2ac..f9627e4 100644 --- a/inventory/host_vars/self.yml +++ b/inventory/host_vars/self.yml @@ -1,3 +1,4 @@ +distribution_release: jammy first_name: Pim last_name: Kunis full_name: "{{ first_name }} {{ last_name }}" diff --git a/roles/alacritty/tasks/main.yml b/roles/alacritty/tasks/main.yml index 7d4d75f..3485b4f 100644 --- a/roles/alacritty/tasks/main.yml +++ b/roles/alacritty/tasks/main.yml @@ -7,7 +7,7 @@ - name: Install PPA repository become: true apt_repository: - repo: "deb [signed-by=/etc/apt/keyrings/alacritty.gpg] https://ppa.launchpadcontent.net/aslatter/ppa/ubuntu {{ ansible_distribution_release }} main" + repo: "deb [signed-by=/etc/apt/keyrings/alacritty.gpg] https://ppa.launchpadcontent.net/aslatter/ppa/ubuntu {{ distribution_release }} main" register: apt_repository - name: Update APT cache become: true diff --git a/roles/neovim/tasks/main.yml b/roles/neovim/tasks/main.yml index 9f4839f..1611660 100644 --- a/roles/neovim/tasks/main.yml +++ b/roles/neovim/tasks/main.yml @@ -7,7 +7,7 @@ - name: Install Neovim PPA become: true apt_repository: - repo: "deb [signed-by=/etc/apt/keyrings/neovim.gpg] https://ppa.launchpadcontent.net/neovim-ppa/unstable/ubuntu {{ ansible_distribution_release }} main" + repo: "deb [signed-by=/etc/apt/keyrings/neovim.gpg] https://ppa.launchpadcontent.net/neovim-ppa/unstable/ubuntu {{ distribution_release }} main" register: apt_repository - name: Update APT cache become: true diff --git a/roles/nicotine/tasks/main.yml b/roles/nicotine/tasks/main.yml index 63ec49a..18063b8 100644 --- a/roles/nicotine/tasks/main.yml +++ b/roles/nicotine/tasks/main.yml @@ -7,7 +7,7 @@ - name: Install PPA repository become: true apt_repository: - repo: "deb [signed-by=/etc/apt/keyrings/nicotine.gpg] https://ppa.launchpadcontent.net/nicotine-team/stable/ubuntu {{ ansible_distribution_release }} main" + repo: "deb [signed-by=/etc/apt/keyrings/nicotine.gpg] https://ppa.launchpadcontent.net/nicotine-team/stable/ubuntu {{ distribution_release }} main" register: apt_repository - name: Update APT cache become: true diff --git a/roles/strawberry/tasks/main.yml b/roles/strawberry/tasks/main.yml index 04c8956..857cc1b 100644 --- a/roles/strawberry/tasks/main.yml +++ b/roles/strawberry/tasks/main.yml @@ -7,7 +7,7 @@ - name: Install PPA repository become: true apt_repository: - repo: "deb [signed-by=/etc/apt/keyrings/strawberry.gpg] https://ppa.launchpadcontent.net/jonaski/strawberry/ubuntu {{ ansible_distribution_release }} main" + repo: "deb [signed-by=/etc/apt/keyrings/strawberry.gpg] https://ppa.launchpadcontent.net/jonaski/strawberry/ubuntu {{ distribution_release }} main" register: apt_repository - name: Update APT cache become: true diff --git a/roles/system/tasks/main.yml b/roles/system/tasks/main.yml index f3a846d..16ba0d6 100644 --- a/roles/system/tasks/main.yml +++ b/roles/system/tasks/main.yml @@ -40,7 +40,7 @@ - name: Install Hashicorp repository become: true apt_repository: - repo: "deb [signed-by=/etc/apt/keyrings/hashicorp.gpg] https://apt.releases.hashicorp.com {{ ansible_distribution_release }} main" + repo: "deb [signed-by=/etc/apt/keyrings/hashicorp.gpg] https://apt.releases.hashicorp.com {{ distribution_release }} main" register: apt_repository - name: Update APT cache become: true diff --git a/roles/virtualbox/tasks/main.yml b/roles/virtualbox/tasks/main.yml index b49c81b..a0ca488 100644 --- a/roles/virtualbox/tasks/main.yml +++ b/roles/virtualbox/tasks/main.yml @@ -7,7 +7,7 @@ - name: Install VirtualBox APT repository become: true apt_repository: - repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/oracle_vbox_2016.asc] https://download.virtualbox.org/virtualbox/debian {{ ansible_distribution_release }} contrib" + repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/oracle_vbox_2016.asc] https://download.virtualbox.org/virtualbox/debian {{ distribution_release }} contrib" register: apt_repository tags: update - name: Update APT cache