fix broken packages
- standardize naming of each pkg append - move _configured vars to end of block
This commit is contained in:
@@ -8,15 +8,15 @@
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/tailscale.yml
|
||||
|
||||
- name: Enable for linux
|
||||
- name: Append tailscale for linux
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
block:
|
||||
- name: Enable for RedHat distros
|
||||
- name: Append tailscale for RedHat distros
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
block:
|
||||
- name: Fedora >=41
|
||||
- name: Add tailscale repo for Fedora >=41
|
||||
ansible.builtin.command:
|
||||
creates: /etc/yum.repos.d/tailscale.repo
|
||||
cmd: "dnf config-manager addrepo --from-repofile={{ tailscale.url_base }}/fedora/tailscale.repo"
|
||||
@@ -25,7 +25,7 @@
|
||||
- ansible_distribution == 'Fedora'
|
||||
- ansible_distribution_major_version|int >= 41
|
||||
|
||||
- name: Fedora <41
|
||||
- name: Add tailscale repo for Fedora <41
|
||||
ansible.builtin.command:
|
||||
creates: /etc/yum.repos.d/tailscale.repo
|
||||
cmd: "dnf config-manager --add-repo {{ tailscale.url_base }}/fedora/tailscale.repo"
|
||||
@@ -34,7 +34,7 @@
|
||||
- ansible_distribution == 'Fedora'
|
||||
- ansible_distribution_major_version|int < 41
|
||||
|
||||
- name: Rhel based distros
|
||||
- name: Add tailscale for Rhel based distros
|
||||
ansible.builtin.command:
|
||||
creates: /etc/yum.repos.d/tailscale.repo
|
||||
cmd: "dnf config-manager --add-repo {{ tailscale.url_base }}/rhel/{{ ansible_os_major_version }}/tailscale.repo"
|
||||
@@ -42,7 +42,7 @@
|
||||
when:
|
||||
- ansible_distribution != 'Fedora'
|
||||
|
||||
- name: Enable for Debian distros
|
||||
- name: Append tailscale for Debian distros
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
block:
|
||||
@@ -62,11 +62,11 @@
|
||||
dest: /etc/apt/sources.list.d/tailscale.list
|
||||
mode: '0644'
|
||||
|
||||
- name: Append to pkg_sys
|
||||
- name: Append tailscale to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['tailscale'] }}"
|
||||
|
||||
- name: Append to pkg_cask
|
||||
- name: Append tailscale to pkg_cask
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
|
||||
Reference in New Issue
Block a user