fix remaining packages
- testing container is starting to work on macos - still need to do testing for linux machines
This commit is contained in:
@@ -3,22 +3,23 @@
|
|||||||
- name: Set ghostty install method
|
- name: Set ghostty install method
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
ghostty:
|
ghostty:
|
||||||
method: "{{ pkgconfig.ghostty.method[ansible_distribution] | default(pkgconfig.ghostty.method.default) }}"
|
method: "{{ pkgconfig.ghostty.methods[ansible_distribution] | default(pkgconfig.ghostty.methods.default) }}"
|
||||||
|
|
||||||
- name: Set ghostty config
|
- name: Set ghostty config
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
ghostty:
|
ghostty:
|
||||||
|
method: "{{ ghostty.method }}"
|
||||||
arch: "{{ pkgconfig.ghostty.archmap[ansible_architecture] }}"
|
arch: "{{ pkgconfig.ghostty.archmap[ansible_architecture] }}"
|
||||||
deps: "{{ pkgconfig.ghostty.build_deps[ansible_os_family] }}"
|
deps: "{{ pkgconfig.ghostty.build_deps[ansible_os_family] }}"
|
||||||
vers: "{{ pkgconfig.ghostty.version }}"
|
vers: "{{ pkgconfig.ghostty.version }}"
|
||||||
pkg: "{{ pkgconfig.ghosty[ghostty.method] }}"
|
pkg: "{{ pkgconfig.ghostty[ghostty.method] }}"
|
||||||
|
|
||||||
- name: Set ghostty config for appimage install
|
- name: Set ghostty config for appimage install
|
||||||
when:
|
when:
|
||||||
- ghostty.method == 'appimage'
|
- ghostty.method == 'appimage'
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
ghostty:
|
ghostty:
|
||||||
method: appimage
|
method: "{{ ghostty.method }}"
|
||||||
file: "Ghostty-{{ ghostty.vers }}-{{ ghostty.arch }}.AppImage"
|
file: "Ghostty-{{ ghostty.vers }}-{{ ghostty.arch }}.AppImage"
|
||||||
link_name: "{{ pkgconfig.ghostty.appimage.link_name }}"
|
link_name: "{{ pkgconfig.ghostty.appimage.link_name }}"
|
||||||
url: "{{ pkgconfig.ghostty.appimage.base_url }}/v{{ ghostty.vers }}/Ghostty-{{ ghostty.vers }}-{{ ghostty.arch }}.AppImage"
|
url: "{{ pkgconfig.ghostty.appimage.base_url }}/v{{ ghostty.vers }}/Ghostty-{{ ghostty.vers }}-{{ ghostty.arch }}.AppImage"
|
||||||
|
|||||||
4
tasks/config/nomad.yml
Normal file
4
tasks/config/nomad.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
- name: Set nomad config
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
nomad:
|
||||||
|
pkgs: "{{ pkgconfig.nomad.pkgs[ansible_system] }}"
|
||||||
4
tasks/config/packer.yml
Normal file
4
tasks/config/packer.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
- name: Set packer config
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
packer:
|
||||||
|
pkgs: "{{ pkgconfig.packer.pkgs[ansible_system] }}"
|
||||||
5
tasks/config/tailscale.yml
Normal file
5
tasks/config/tailscale.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
- name: Set tailscale config
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
tailscale:
|
||||||
|
url_base: "{{ pkgconfig.tailscale.url_base }}"
|
||||||
|
release: "{{ pkgconfig.tailscale.release[ansible_distribution_release] | default({}) }}"
|
||||||
4
tasks/config/vault.yml
Normal file
4
tasks/config/vault.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
- name: Set vault config
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
vault:
|
||||||
|
pkgs: "{{ pkgconfig.vault.pkgs[ansible_system] }}"
|
||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_go
|
- name: Add to pkg_go
|
||||||
notify:
|
notify:
|
||||||
- Depend go
|
- Depend go
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_go: "{{ pkg_go + ['github.com/air-verse/air@latest'] }}"
|
pkg_go: "{{ pkg_go + ['github.com/air-verse/air@latest'] }}"
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
- name: Append to pkgs
|
- name: Append to pkgs
|
||||||
notify:
|
notify:
|
||||||
- Depend cargo
|
- Depend cargo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_sys: "{{ pkg_sys + alacritty.deps }}"
|
pkg_sys: "{{ pkg_sys + alacritty.deps }}"
|
||||||
pkg_cargo: "{{ pkg_cargo + [alacritty] }}"
|
pkg_cargo: "{{ pkg_cargo + [alacritty] }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_npm
|
- name: Add to pkg_npm
|
||||||
notify:
|
notify:
|
||||||
- Depend node
|
- Depend node
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_npm: "{{ pkg_npm + ['@ansible/ansible-language-server'] }}"
|
pkg_npm: "{{ pkg_npm + ['@ansible/ansible-language-server'] }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_npm
|
- name: Add to pkg_npm
|
||||||
notify:
|
notify:
|
||||||
- Depend node
|
- Depend node
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_npm: "{{ pkg_npm + ['bash-language-server'] }}"
|
pkg_npm: "{{ pkg_npm + ['bash-language-server'] }}"
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
- bitwarden.method == 'flatpak'
|
- bitwarden.method == 'flatpak'
|
||||||
notify:
|
notify:
|
||||||
- Depend flatpak
|
- Depend flatpak
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_flatpak: "{{ pkg_flatpak + [bitwarden.pkg] }}"
|
pkg_flatpak: "{{ pkg_flatpak + [bitwarden.pkg] }}"
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
notify:
|
notify:
|
||||||
- Depend cargo
|
- Depend cargo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_sys: "{{ pkg_sys + broot.deps }}"
|
pkg_sys: "{{ pkg_sys + broot.deps }}"
|
||||||
pkg_cargo: "{{ pkg_cargo + [broot] }}"
|
pkg_cargo: "{{ pkg_cargo + [broot] }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_go
|
- name: Add to pkg_go
|
||||||
notify:
|
notify:
|
||||||
- Depend go
|
- Depend go
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf/cmd/buf@latest'] }}"
|
pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf/cmd/buf@latest'] }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_go
|
- name: Add to pkg_go
|
||||||
notify:
|
notify:
|
||||||
- Depend go
|
- Depend go
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf-language-server/cmd/bufls@latest'] }}"
|
pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf-language-server/cmd/bufls@latest'] }}"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
ansible.builtin.yum_repository:
|
ansible.builtin.yum_repository:
|
||||||
name: "{{ carapace.repo.name }}"
|
name: "{{ carapace.repo.name }}"
|
||||||
description: "{{ carapace.repo.description }}"
|
description: "{{ carapace.repo.description }}"
|
||||||
baseurl: "{{ charapace.repo.baseurl }}"
|
baseurl: "{{ carapace.repo.baseurl }}"
|
||||||
enabled: true
|
enabled: true
|
||||||
gpgcheck: false
|
gpgcheck: false
|
||||||
state: present
|
state: present
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Append to pkg_go
|
- name: Append to pkg_go
|
||||||
notify:
|
notify:
|
||||||
- Depend go
|
- Depend go
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_go: "{{ pkg_go + ['github.com/cheat/cheat/cmd/cheat@latest'] }}"
|
pkg_go: "{{ pkg_go + ['github.com/cheat/cheat/cmd/cheat@latest'] }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_go
|
- name: Add to pkg_go
|
||||||
notify:
|
notify:
|
||||||
- Depend go
|
- Depend go
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_go: "{{ pkg_go + ['github.com/mrtazz/checkmake/cmd/checkmake@latest'] }}"
|
pkg_go: "{{ pkg_go + ['github.com/mrtazz/checkmake/cmd/checkmake@latest'] }}"
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
notify:
|
notify:
|
||||||
- Depend cargo
|
- Depend cargo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_cargo: "{{ pkg_cargo + [choose] }}"
|
pkg_cargo: "{{ pkg_cargo + [choose] }}"
|
||||||
|
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_pipx
|
- name: Add to pkg_pipx
|
||||||
notify:
|
notify:
|
||||||
- Depend pipx
|
- Depend pipx
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_pipx: "{{ pkg_pipx + ['cmakelang'] }}"
|
pkg_pipx: "{{ pkg_pipx + ['cmakelang'] }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_npm
|
- name: Add to pkg_npm
|
||||||
notify:
|
notify:
|
||||||
- Depend node
|
- Depend node
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_npm: "{{ pkg_npm + ['@commitlint/cli'] }}"
|
pkg_npm: "{{ pkg_npm + ['@commitlint/cli'] }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_npm
|
- name: Add to pkg_npm
|
||||||
notify:
|
notify:
|
||||||
- Depend node
|
- Depend node
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_npm: "{{ pkg_npm + ['@commitlint/config-conventional'] }}"
|
pkg_npm: "{{ pkg_npm + ['@commitlint/config-conventional'] }}"
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
notify:
|
notify:
|
||||||
- Depend hashicorp repo
|
- Depend hashicorp repo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_sys: "{{ pkg_sys + consul.pkgs }}"
|
pkg_sys: "{{ pkg_sys + consul.pkgs }}"
|
||||||
|
|
||||||
@@ -13,5 +14,6 @@
|
|||||||
- ansible_system == 'Darwin'
|
- ansible_system == 'Darwin'
|
||||||
notify:
|
notify:
|
||||||
- Depend hashicorp repo
|
- Depend hashicorp repo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_tap: "{{ pkg_tap + consul.pkgs }}"
|
pkg_tap: "{{ pkg_tap + consul.pkgs }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_npm
|
- name: Add to pkg_npm
|
||||||
notify:
|
notify:
|
||||||
- Depend node
|
- Depend node
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
|
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Append to pkg_go
|
- name: Append to pkg_go
|
||||||
notify:
|
notify:
|
||||||
- Depend go
|
- Depend go
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_go: "{{ pkg_go + ['github.com/rs/curlie@latest'] }}"
|
pkg_go: "{{ pkg_go + ['github.com/rs/curlie@latest'] }}"
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
notify:
|
notify:
|
||||||
- Depend flatpak
|
- Depend flatpak
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_flatpak: "{{ pkg_flatpak + ['io.dbeaver.DBeaverCommunity'] }}"
|
pkg_flatpak: "{{ pkg_flatpak + ['io.dbeaver.DBeaverCommunity'] }}"
|
||||||
|
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_npm
|
- name: Add to pkg_npm
|
||||||
notify:
|
notify:
|
||||||
- Depend node
|
- Depend node
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_npm: "{{ pkg_npm + ['dockerfile-language-server-nodejs'] }}"
|
pkg_npm: "{{ pkg_npm + ['dockerfile-language-server-nodejs'] }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_cargo
|
- name: Add to pkg_cargo
|
||||||
notify:
|
notify:
|
||||||
- Depend cargo
|
- Depend cargo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_cargo: "{{ pkg_cargo + ['dotenv-linter'] }}"
|
pkg_cargo: "{{ pkg_cargo + ['dotenv-linter'] }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Append to pkg_go
|
- name: Append to pkg_go
|
||||||
notify:
|
notify:
|
||||||
- Depend go
|
- Depend go
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_go: "{{ pkg_go + ['github.com/muesli/duf@latest'] }}"
|
pkg_go: "{{ pkg_go + ['github.com/muesli/duf@latest'] }}"
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
notify:
|
notify:
|
||||||
- Depend cargo
|
- Depend cargo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_cargo: "{{ pkg_cargo + ['du-dust'] }}"
|
pkg_cargo: "{{ pkg_cargo + ['du-dust'] }}"
|
||||||
|
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_npm
|
- name: Add to pkg_npm
|
||||||
notify:
|
notify:
|
||||||
- Depend node
|
- Depend node
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
|
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_cargo
|
- name: Add to pkg_cargo
|
||||||
notify:
|
notify:
|
||||||
- Depend cargo
|
- Depend cargo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_cargo: "{{ pkg_cargo + ['eza'] }}"
|
pkg_cargo: "{{ pkg_cargo + ['eza'] }}"
|
||||||
|
|||||||
@@ -4,10 +4,11 @@
|
|||||||
when:
|
when:
|
||||||
- ghostty.method == 'src'
|
- ghostty.method == 'src'
|
||||||
- ansible_distribution != 'MacOSX'
|
- ansible_distribution != 'MacOSX'
|
||||||
notify:
|
|
||||||
- Depend zig
|
|
||||||
block:
|
block:
|
||||||
- name: Build ghostty from source
|
- name: Build ghostty from source
|
||||||
|
notify:
|
||||||
|
- Depend zig
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_sys: "{{ pkg_sys + ghostty.deps }}"
|
pkg_sys: "{{ pkg_sys + ghostty.deps }}"
|
||||||
pkg_src: "{{ pkg_src + ['ghostty'] }}"
|
pkg_src: "{{ pkg_src + ['ghostty'] }}"
|
||||||
@@ -28,6 +29,7 @@
|
|||||||
- ansible_distribution == 'Fedora'
|
- ansible_distribution == 'Fedora'
|
||||||
notify:
|
notify:
|
||||||
- Depend terra repo
|
- Depend terra repo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_sys: "{{ pkg_sys + ['ghostty'] }}"
|
pkg_sys: "{{ pkg_sys + ['ghostty'] }}"
|
||||||
|
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_go
|
- name: Add to pkg_go
|
||||||
notify:
|
notify:
|
||||||
- Depend go
|
- Depend go
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_go: "{{ pkg_go + ['github.com/charmbracelet/glow@latest'] }}"
|
pkg_go: "{{ pkg_go + ['github.com/charmbracelet/glow@latest'] }}"
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
notify:
|
notify:
|
||||||
- Depend flatpak
|
- Depend flatpak
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_flatpak: "{{ pkg_flatpak + ['org.godotengine.Godot'] }}"
|
pkg_flatpak: "{{ pkg_flatpak + ['org.godotengine.Godot'] }}"
|
||||||
|
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_go
|
- name: Add to pkg_go
|
||||||
notify:
|
notify:
|
||||||
- Depend go
|
- Depend go
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_go: "{{ pkg_go + ['golang.org/x/tools/gopls@latest'] }}"
|
pkg_go: "{{ pkg_go + ['golang.org/x/tools/gopls@latest'] }}"
|
||||||
|
|||||||
@@ -11,5 +11,6 @@
|
|||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
notify:
|
notify:
|
||||||
- Depend cargo
|
- Depend cargo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_cargo: "{{ pkg_cargo + ['gping'] }}"
|
pkg_cargo: "{{ pkg_cargo + ['gping'] }}"
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
notify:
|
notify:
|
||||||
- Depend flatpak
|
- Depend flatpak
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_flatpak: "{{ pkg_flatpak + ['com.heroicgameslauncher.hgl'] }}"
|
pkg_flatpak: "{{ pkg_flatpak + ['com.heroicgameslauncher.hgl'] }}"
|
||||||
|
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_npm
|
- name: Add to pkg_npm
|
||||||
notify:
|
notify:
|
||||||
- Depend node
|
- Depend node
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
|
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
notify:
|
notify:
|
||||||
- Depend flatpak
|
- Depend flatpak
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_flatpak: "{{ pkg_flatpak + ['io.httpie.Httpie'] }}"
|
pkg_flatpak: "{{ pkg_flatpak + ['io.httpie.Httpie'] }}"
|
||||||
|
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_npm
|
- name: Add to pkg_npm
|
||||||
notify:
|
notify:
|
||||||
- Depend node
|
- Depend node
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_npm: "{{ pkg_npm + ['intelephense'] }}"
|
pkg_npm: "{{ pkg_npm + ['intelephense'] }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_cargo
|
- name: Add to pkg_cargo
|
||||||
notify:
|
notify:
|
||||||
- Depend cargo
|
- Depend cargo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_cargo: "{{ pkg_cargo + ['jinja-lsp'] }}"
|
pkg_cargo: "{{ pkg_cargo + ['jinja-lsp'] }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_npm
|
- name: Add to pkg_npm
|
||||||
notify:
|
notify:
|
||||||
- Depend node
|
- Depend node
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
|
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_go
|
- name: Add to pkg_go
|
||||||
notify:
|
notify:
|
||||||
- Depend go
|
- Depend go
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_go: "{{ pkg_go + ['github.com/jesseduffield/lazygit@latest'] }}"
|
pkg_go: "{{ pkg_go + ['github.com/jesseduffield/lazygit@latest'] }}"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
when:
|
when:
|
||||||
- libreoffice.method == 'flatpak'
|
- libreoffice.method == 'flatpak'
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_flatpak: "{{ pkg_flatpak + libreoffice.flatpak }}"
|
pkg_flatpak: "{{ pkg_flatpak + [libreoffice.flatpak] }}"
|
||||||
|
|
||||||
- name: Append to pkg_sys
|
- name: Append to pkg_sys
|
||||||
when:
|
when:
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_npm
|
- name: Add to pkg_npm
|
||||||
notify:
|
notify:
|
||||||
- Depend node
|
- Depend node
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_npm: "{{ pkg_npm + ['markdownlint-cli'] }}"
|
pkg_npm: "{{ pkg_npm + ['markdownlint-cli'] }}"
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
notify:
|
notify:
|
||||||
- Depend cargo
|
- Depend cargo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_sys: "{{ pkg_sys + neovide.deps }}"
|
pkg_sys: "{{ pkg_sys + neovide.deps }}"
|
||||||
pkg_cargo: "{{ pkg_cargo + [neovide] }}"
|
pkg_cargo: "{{ pkg_cargo + [neovide] }}"
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
- nextcloud.method == 'flatpak'
|
- nextcloud.method == 'flatpak'
|
||||||
notify:
|
notify:
|
||||||
- Depend flatpak
|
- Depend flatpak
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_flatpak: "{{ pkg_flatpak + [nextcloud] }}"
|
pkg_flatpak: "{{ pkg_flatpak + [nextcloud] }}"
|
||||||
|
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_pipx
|
- name: Add to pkg_pipx
|
||||||
notify:
|
notify:
|
||||||
- Depend node
|
- Depend node
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_pipx: "{{ pkg_pipx + ['nginx-language-server'] }}"
|
pkg_pipx: "{{ pkg_pipx + ['nginx-language-server'] }}"
|
||||||
|
|||||||
@@ -1,7 +1,19 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
---
|
---
|
||||||
- name: Append to pkgs
|
- name: Append to pkg_tap
|
||||||
|
when:
|
||||||
|
- ansible_distribution == 'MacOSX'
|
||||||
notify:
|
notify:
|
||||||
- Depend hashicorp repo
|
- Depend hashicorp repo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_tap: "{{ pkg_tap + [pkgconfig.nomad[ansible_system]] }}"
|
pkg_tap: "{{ pkg_tap + nomad.pkgs }}"
|
||||||
|
|
||||||
|
- name: Append to pkg_sys
|
||||||
|
when:
|
||||||
|
- ansible_system == 'Linux'
|
||||||
|
notify:
|
||||||
|
- Depend hashicorp repo
|
||||||
|
changed_when: true
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
pkg_sys: "{{ pkg_sys + nomad.pkgs }}"
|
||||||
|
|||||||
@@ -4,12 +4,13 @@
|
|||||||
when:
|
when:
|
||||||
- ansible_system == 'Darwin'
|
- ansible_system == 'Darwin'
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_tap: "{{ pkg_tap + [pkgconfig.packer[ansible_system]] }}"
|
pkg_tap: "{{ pkg_tap + packer.pkgs }}"
|
||||||
|
|
||||||
- name: Append to pkg_sys
|
- name: Append to pkg_sys
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
notify:
|
notify:
|
||||||
- Depend hashicorp repo
|
- Depend hashicorp repo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_sys: "{{ pkg_sys + ['packer'] }}"
|
pkg_sys: "{{ pkg_sys + packer.pkgs }}"
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
- pgadmin.method == 'flatpak'
|
- pgadmin.method == 'flatpak'
|
||||||
notify:
|
notify:
|
||||||
- Depend flatpak
|
- Depend flatpak
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_flatpak: "{{ pkg_flatpak + [pgadmin.flatpak] }}"
|
pkg_flatpak: "{{ pkg_flatpak + [pgadmin.flatpak] }}"
|
||||||
|
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_pipx
|
- name: Add to pkg_pipx
|
||||||
notify:
|
notify:
|
||||||
- Depend pipx
|
- Depend pipx
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_pipx: "{{ pkg_pipx + ['pyright'] }}"
|
pkg_pipx: "{{ pkg_pipx + ['pyright'] }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_npm
|
- name: Add to pkg_npm
|
||||||
notify:
|
notify:
|
||||||
- Depend node
|
- Depend node
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_npm: "{{ pkg_npm + ['@quobix/vacuum'] }}"
|
pkg_npm: "{{ pkg_npm + ['@quobix/vacuum'] }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_go
|
- name: Add to pkg_go
|
||||||
notify:
|
notify:
|
||||||
- Depend go
|
- Depend go
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_go: "{{ pkg_go + ['github.com/mgechev/revive@latest'] }}"
|
pkg_go: "{{ pkg_go + ['github.com/mgechev/revive@latest'] }}"
|
||||||
|
|||||||
@@ -11,5 +11,6 @@
|
|||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
notify:
|
notify:
|
||||||
- Depend cargo
|
- Depend cargo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_cargo: "{{ pkg_cargo + ['sd'] }}"
|
pkg_cargo: "{{ pkg_cargo + ['sd'] }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_pipx
|
- name: Add to pkg_pipx
|
||||||
notify:
|
notify:
|
||||||
- Depend pipx
|
- Depend pipx
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_pipx: "{{ pkg_pipx + ['sqlfluff'] }}"
|
pkg_pipx: "{{ pkg_pipx + ['sqlfluff'] }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_npm
|
- name: Add to pkg_npm
|
||||||
notify:
|
notify:
|
||||||
- Depend node
|
- Depend node
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_npm: "{{ pkg_npm + ['sql-language-server'] }}"
|
pkg_npm: "{{ pkg_npm + ['sql-language-server'] }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_cargo
|
- name: Add to pkg_cargo
|
||||||
notify:
|
notify:
|
||||||
- Depend cargo
|
- Depend cargo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_cargo: "{{ pkg_cargo + ['starship'] }}"
|
pkg_cargo: "{{ pkg_cargo + ['starship'] }}"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
- name: Fedora >=41
|
- name: Fedora >=41
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
creates: /etc/yum.repos.d/tailscale.repo
|
creates: /etc/yum.repos.d/tailscale.repo
|
||||||
cmd: "dnf config-manager addrepo --from-repofile={{ pkgconfig.tailscale.url_base }}/fedora/tailscale.repo"
|
cmd: "dnf config-manager addrepo --from-repofile={{ tailscale.url_base }}/fedora/tailscale.repo"
|
||||||
become: true
|
become: true
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == 'Fedora'
|
- ansible_distribution == 'Fedora'
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
- name: Fedora <41
|
- name: Fedora <41
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
creates: /etc/yum.repos.d/tailscale.repo
|
creates: /etc/yum.repos.d/tailscale.repo
|
||||||
cmd: "dnf config-manager --add-repo {{ pkgconfig.tailscale.url_base }}/fedora/tailscale.repo"
|
cmd: "dnf config-manager --add-repo {{ tailscale.url_base }}/fedora/tailscale.repo"
|
||||||
become: true
|
become: true
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == 'Fedora'
|
- ansible_distribution == 'Fedora'
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
- name: Rhel based distros
|
- name: Rhel based distros
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
creates: /etc/yum.repos.d/tailscale.repo
|
creates: /etc/yum.repos.d/tailscale.repo
|
||||||
cmd: "dnf config-manager --add-repo {{ pkgconfig.tailscale.url_base }}/rhel/{{ ansible_os_major_version }}/tailscale.repo"
|
cmd: "dnf config-manager --add-repo {{ tailscale.url_base }}/rhel/{{ ansible_os_major_version }}/tailscale.repo"
|
||||||
become: true
|
become: true
|
||||||
when:
|
when:
|
||||||
- ansible_distribution != 'Fedora'
|
- ansible_distribution != 'Fedora'
|
||||||
@@ -43,14 +43,14 @@
|
|||||||
- name: Get tailscal keyring
|
- name: Get tailscal keyring
|
||||||
become: "{{ sys_pkg_become }}"
|
become: "{{ sys_pkg_become }}"
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: "{{ pkgconfig.tailscale.url_base }}/debian/{{ pkgconfig.tailscale.release[ansible_os_release].gpg }}"
|
url: "{{ tailscale.url_base }}/debian/{{ tailscale.release.gpg }}"
|
||||||
dest: /usr/share/keyrings/tailscale-archive-keyring.gpg
|
dest: /usr/share/keyrings/tailscale-archive-keyring.gpg
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
|
||||||
- name: Get tailscale repo list
|
- name: Get tailscale repo list
|
||||||
become: "{{ sys_pkg_become }}"
|
become: "{{ sys_pkg_become }}"
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: "{{ pkgconfig.tailscale.url_base }}/debian/{{ pkgconfig.tailscale.release[ansible_os_release].list }}"
|
url: "{{ tailscale.url_base }}/debian/{{ tailscale.release.list }}"
|
||||||
dest: /etc/apt/sources.list.d/tailscale.list
|
dest: /etc/apt/sources.list.d/tailscale.list
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_npm
|
- name: Add to pkg_npm
|
||||||
notify:
|
notify:
|
||||||
- Depend node
|
- Depend node
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_npm: "{{ pkg_npm + ['@tailwindcss/language-server'] }}"
|
pkg_npm: "{{ pkg_npm + ['@tailwindcss/language-server'] }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_go
|
- name: Add to pkg_go
|
||||||
notify:
|
notify:
|
||||||
- Depend go
|
- Depend go
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_go: "{{ pkg_go + ['github.com/a-h/templ/cmd/templ@latest'] }}"
|
pkg_go: "{{ pkg_go + ['github.com/a-h/templ/cmd/templ@latest'] }}"
|
||||||
|
|||||||
@@ -1,17 +1,21 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
---
|
---
|
||||||
- name: Append to pkgs
|
- name: Append to pkgs
|
||||||
notify:
|
|
||||||
- Depend hashicorp repo
|
|
||||||
block:
|
block:
|
||||||
- name: MacOSX specific
|
- name: MacOSX specific
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == 'MacOSX'
|
- ansible_distribution == 'MacOSX'
|
||||||
|
notify:
|
||||||
|
- Depend hashicorp repo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_tap: "{{ pkg_tap + terraform.pkgs }}"
|
pkg_tap: "{{ pkg_tap + terraform.pkgs }}"
|
||||||
|
|
||||||
- name: Linux specific
|
- name: Linux specific
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
|
notify:
|
||||||
|
- Depend hashicorp repo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_sys: "{{ pkg_sys + terraform.pkgs }}"
|
pkg_sys: "{{ pkg_sys + terraform.pkgs }}"
|
||||||
|
|||||||
@@ -1,17 +1,21 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
---
|
---
|
||||||
- name: Append to pkgs
|
- name: Append to pkgs
|
||||||
notify:
|
|
||||||
- Depend hashicorp repo
|
|
||||||
block:
|
block:
|
||||||
- name: MacOS specific
|
- name: MacOS specific
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Darwin'
|
- ansible_system == 'Darwin'
|
||||||
|
notify:
|
||||||
|
- Depend hashicorp repo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_tap: "{{ pkg_tap + terraformls.pkgs }}"
|
pkg_tap: "{{ pkg_tap + terraformls.pkgs }}"
|
||||||
|
|
||||||
- name: Linux specific
|
- name: Linux specific
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
|
notify:
|
||||||
|
- Depend hashicorp repo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_sys: "{{ pkg_sys + terraformls.pkgs }}"
|
pkg_sys: "{{ pkg_sys + terraformls.pkgs }}"
|
||||||
|
|||||||
@@ -1,17 +1,21 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
---
|
---
|
||||||
- name: Append to pkgs
|
- name: Append to pkgs
|
||||||
notify:
|
|
||||||
- Depend hashicorp repo
|
|
||||||
block:
|
block:
|
||||||
- name: MacOS specific
|
- name: MacOS specific
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Darwin'
|
- ansible_system == 'Darwin'
|
||||||
|
notify:
|
||||||
|
- Depend hashicorp repo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_tap: "{{ pkg_tap + [pkgconfig.vault[ansible_system]] }}"
|
pkg_tap: "{{ pkg_tap + vault.pkgs }}"
|
||||||
|
|
||||||
- name: Linux specific
|
- name: Linux specific
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
|
notify:
|
||||||
|
- Depend hashicorp repo
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_sys: "{{ pkg_sys + ['vault'] }}"
|
pkg_sys: "{{ pkg_sys + vault.pkgs }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Add to pkg_npm
|
- name: Add to pkg_npm
|
||||||
notify:
|
notify:
|
||||||
- Depend node
|
- Depend node
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_npm: "{{ pkg_npm + ['yaml-language-server'] }}"
|
pkg_npm: "{{ pkg_npm + ['yaml-language-server'] }}"
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
- name: Append to pkgs
|
- name: Append to pkgs
|
||||||
notify:
|
notify:
|
||||||
- Depend zig
|
- Depend zig
|
||||||
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_archive: "{{ pkg_archive + ['zls'] }}"
|
pkg_archive: "{{ pkg_archive + ['zls'] }}"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ LABEL PROJECT "ansible_role_package"
|
|||||||
LABEL MAINTAINER "Matthew Stobbs <matthew@stobbs.ca>"
|
LABEL MAINTAINER "Matthew Stobbs <matthew@stobbs.ca>"
|
||||||
|
|
||||||
RUN useradd -d /home/ansible -m -G wheel ansible
|
RUN useradd -d /home/ansible -m -G wheel ansible
|
||||||
RUN dnf install -y openssh-server python3-paramiko python3-libdnf5
|
RUN dnf install -y openssh-server python3-paramiko python3-libdnf5 gnupg2
|
||||||
EXPOSE 22
|
EXPOSE 22
|
||||||
|
|
||||||
USER ansible
|
USER ansible
|
||||||
|
|||||||
10
tests/cleanup.sh
Executable file
10
tests/cleanup.sh
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
IMAGE=packagetest
|
||||||
|
CONTAINER=packagetest
|
||||||
|
MACHINENAME=podman-machine-default
|
||||||
|
|
||||||
|
ssh-keygen -R "[127.0.0.1]:2222"
|
||||||
|
podman stop $CONTAINER
|
||||||
|
podman rm $IMAGE
|
||||||
|
podman machine stop $MACHINENAME
|
||||||
23
tests/setup.sh
Executable file
23
tests/setup.sh
Executable file
@@ -0,0 +1,23 @@
|
|||||||
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
IMAGE=packagetest
|
||||||
|
CONTAINER=packagetest
|
||||||
|
MACHINENAME=podman-machine-default
|
||||||
|
|
||||||
|
function machine_state {
|
||||||
|
echo $(podman machine inspect $MACHINENAME | jq -r '.[].State')
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "Starting $MACHINENAME"
|
||||||
|
podman machine start -q $MACHINENAME
|
||||||
|
while [ "$(machine_state)" != "running" ]
|
||||||
|
do
|
||||||
|
echo $(machine_state)
|
||||||
|
echo "Wating for $MACHINENAME to start"
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "Machine $MACHINENAME running"
|
||||||
|
|
||||||
|
echo "Building container images"
|
||||||
|
podman build --platform linux/amd64 -f Containerfile -t $IMAGE .
|
||||||
4
tests/test.sh
Executable file
4
tests/test.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
podman run --rm -it -d --platform linux/amd64 --name packagetest -p 2222:22 packagetest
|
||||||
|
ansible-playbook test_not_local.yml -i inventory.yml
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
---
|
|
||||||
- hosts: localhost
|
|
||||||
remote_user: root
|
|
||||||
roles:
|
|
||||||
- role: ansible_role_package
|
|
||||||
vars:
|
|
||||||
use_local: false
|
|
||||||
packages:
|
|
||||||
- air
|
|
||||||
- ansible-language-server
|
|
||||||
112
tests/test_not_local.yml
Normal file
112
tests/test_not_local.yml
Normal file
@@ -0,0 +1,112 @@
|
|||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
vars:
|
||||||
|
testpkgs:
|
||||||
|
- air
|
||||||
|
- alacritty
|
||||||
|
- ansible-language-server
|
||||||
|
- ansible-lint
|
||||||
|
- ansible
|
||||||
|
- bashls
|
||||||
|
- bat
|
||||||
|
- bitwarden
|
||||||
|
- blender
|
||||||
|
- broot
|
||||||
|
- btop
|
||||||
|
- buf
|
||||||
|
- bufls
|
||||||
|
- carapace
|
||||||
|
- cheat
|
||||||
|
- checkmake
|
||||||
|
- choose
|
||||||
|
- clangd
|
||||||
|
- cmake
|
||||||
|
- cmakelang
|
||||||
|
- commitlint-cli
|
||||||
|
- commitlint-config-conventional
|
||||||
|
- consul
|
||||||
|
- cssls
|
||||||
|
- curlie
|
||||||
|
- dbeaver
|
||||||
|
- direnv
|
||||||
|
- dockerls
|
||||||
|
- dotenv-linter
|
||||||
|
- duf
|
||||||
|
- dust
|
||||||
|
- editorconfig
|
||||||
|
- eslint
|
||||||
|
- eza
|
||||||
|
- fd
|
||||||
|
- firefox
|
||||||
|
- flatpak
|
||||||
|
- fzf
|
||||||
|
- ghostty
|
||||||
|
- git
|
||||||
|
- glow
|
||||||
|
- go
|
||||||
|
- godot
|
||||||
|
- gopls
|
||||||
|
- gping
|
||||||
|
- heroic
|
||||||
|
- htmlls
|
||||||
|
- htmx-lsp
|
||||||
|
- httpie
|
||||||
|
- hugo
|
||||||
|
- hyperfine
|
||||||
|
- intelephense
|
||||||
|
- jinja-lsp
|
||||||
|
- jq
|
||||||
|
- jsonls
|
||||||
|
- kitty
|
||||||
|
- lazygit
|
||||||
|
- libreoffice
|
||||||
|
- lua-language-server
|
||||||
|
- markdownlint-cli
|
||||||
|
- mcfly
|
||||||
|
- neovide
|
||||||
|
- neovim
|
||||||
|
- nerdfonts
|
||||||
|
- nextcloud
|
||||||
|
- nginxls
|
||||||
|
- nodejs
|
||||||
|
- nomad
|
||||||
|
- packer
|
||||||
|
- pandoc
|
||||||
|
- pgadmin
|
||||||
|
- pipx
|
||||||
|
- podman
|
||||||
|
- pyright
|
||||||
|
- python3
|
||||||
|
- quobix-vacuum
|
||||||
|
- revive
|
||||||
|
- ripgrep
|
||||||
|
- rust
|
||||||
|
- sd
|
||||||
|
- sqlfluff
|
||||||
|
- sqlls
|
||||||
|
- starship
|
||||||
|
- stow
|
||||||
|
- tailscale
|
||||||
|
- tailwindcss-languageserver
|
||||||
|
- templ
|
||||||
|
- terraform
|
||||||
|
- terraformls
|
||||||
|
- thunderbird
|
||||||
|
- tidy
|
||||||
|
- tldr
|
||||||
|
- tmux
|
||||||
|
- vault
|
||||||
|
- xh
|
||||||
|
- yamlls
|
||||||
|
- zfs
|
||||||
|
- zig
|
||||||
|
- zls
|
||||||
|
- zoxide
|
||||||
|
- zsh
|
||||||
|
tasks:
|
||||||
|
- name: Test all packages with use_local=false
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: ansible_role_package
|
||||||
|
vars:
|
||||||
|
use_local: false
|
||||||
|
packages: "{{ testpkgs }}"
|
||||||
@@ -15,7 +15,11 @@ ghostty:
|
|||||||
appimage:
|
appimage:
|
||||||
base_url: https://github.com/psadi/ghostty-appimage/releases/download/
|
base_url: https://github.com/psadi/ghostty-appimage/releases/download/
|
||||||
link_name: ghostty
|
link_name: ghostty
|
||||||
method:
|
cask:
|
||||||
|
- ghostty
|
||||||
|
sys:
|
||||||
|
- ghostty
|
||||||
|
methods:
|
||||||
default: appimage
|
default: appimage
|
||||||
Fedora: sys
|
Fedora: sys
|
||||||
MacOSX: brew
|
MacOSX: cask
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ go:
|
|||||||
amd64: sha256:dee0ea64411a00b47ded586d5a8e30cfe3acf51564aa1bb24e039a6dca807a29
|
amd64: sha256:dee0ea64411a00b47ded586d5a8e30cfe3acf51564aa1bb24e039a6dca807a29
|
||||||
arm64: sha256:b19eb6b7ae87f8371c3e7a84d129db67779a2883d2fffa6bb90412b0167df133
|
arm64: sha256:b19eb6b7ae87f8371c3e7a84d129db67779a2883d2fffa6bb90412b0167df133
|
||||||
Linux:
|
Linux:
|
||||||
amd64: sha256:b19eb6b7ae87f8371c3e7a84d129db67779a2883d2fffa6bb90412b0167df133
|
amd64: sha256:dea9ca38a0b852a74e81c26134671af7c0fbe65d81b0dc1c5bfe22cf7d4c8858
|
||||||
arm64: sha256:c3fa6d16ffa261091a5617145553c71d21435ce547e44cc6dfb7470865527cc7
|
arm64: sha256:c3fa6d16ffa261091a5617145553c71d21435ce547e44cc6dfb7470865527cc7
|
||||||
1.23.6:
|
1.23.6:
|
||||||
Darwin:
|
Darwin:
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
nomad:
|
nomad:
|
||||||
Linux: nomad
|
pkgs:
|
||||||
Darwin: hashicorp/tap/nomad
|
Linux:
|
||||||
|
- nomad
|
||||||
|
Darwin:
|
||||||
|
- hashicorp/tap/nomad
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
packer:
|
packer:
|
||||||
Linux: packer
|
pkgs:
|
||||||
Darwin: packer
|
Linux:
|
||||||
|
- packer
|
||||||
|
Darwin:
|
||||||
|
- packer
|
||||||
|
|||||||
@@ -10,3 +10,4 @@ pgadmin:
|
|||||||
pkgs:
|
pkgs:
|
||||||
Darwin:
|
Darwin:
|
||||||
- pgadmin4
|
- pgadmin4
|
||||||
|
Linux: []
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
vault:
|
vault:
|
||||||
Linux: vault
|
pkgs:
|
||||||
Darwin: hashicorp/tap/vault
|
Linux:
|
||||||
|
- vault
|
||||||
|
Darwin:
|
||||||
|
- hashicorp/tap/vault
|
||||||
|
|||||||
Reference in New Issue
Block a user