add and fix handlers
- use handlers for pre-installation dependencies like repos
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
---
|
---
|
||||||
- name: Dep end go
|
- name: Depend go
|
||||||
ansible.builtin.include_tasks:
|
ansible.builtin.include_tasks:
|
||||||
file: addpkg.yml
|
file: addpkg.yml
|
||||||
vars:
|
vars:
|
||||||
@@ -17,3 +17,17 @@
|
|||||||
pkg: rust
|
pkg: rust
|
||||||
ansible.builtin.include_tasks:
|
ansible.builtin.include_tasks:
|
||||||
file: addpkg.yml
|
file: addpkg.yml
|
||||||
|
|
||||||
|
- name: Depend zig
|
||||||
|
vars:
|
||||||
|
pkg: zig
|
||||||
|
ansible.builtin.include_tasks:
|
||||||
|
file: addpkg.yml
|
||||||
|
|
||||||
|
- name: Depend terra repo
|
||||||
|
ansible.builtin.include_tasks:
|
||||||
|
file: repos/terra.yml
|
||||||
|
|
||||||
|
- name: Depend hashicorp repo
|
||||||
|
ansible.builtin.include_tasks:
|
||||||
|
file: repos/hashicorp.yml
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
- name: flathub
|
- name: flathub
|
||||||
url: https://dl.flathub.org/repo/flathub.flatpakrepo
|
url: https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||||
flatpak_method: "{% if use_local %}user{% else %}system{% endif %}"
|
flatpak_method: "{% if use_local %}user{% else %}system{% endif %}"
|
||||||
pkg_appimage: [] # app_images to install
|
pkg_appimage: [] # appimages to install
|
||||||
pkg_flatpak: [] # flatpak packages to install
|
pkg_flatpak: [] # flatpak packages to install
|
||||||
pkg_snap: [] # snpacraft.io packages
|
pkg_snap: [] # snpacraft.io packages
|
||||||
sys_pkg_become: true # Linux package managers require sudo access
|
sys_pkg_become: true # Linux package managers require sudo access
|
||||||
|
|||||||
@@ -30,6 +30,9 @@
|
|||||||
ansible.builtin.include_tasks:
|
ansible.builtin.include_tasks:
|
||||||
file: addpkg.yml
|
file: addpkg.yml
|
||||||
|
|
||||||
|
- name: Flush handlers to ensure dependencies are installed
|
||||||
|
ansible.builtin.meta: flush_handlers
|
||||||
|
|
||||||
- name: Install sys_pkgs list using system package manager
|
- name: Install sys_pkgs list using system package manager
|
||||||
become: "{{ sys_pkg_become }}"
|
become: "{{ sys_pkg_become }}"
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
|
|||||||
Reference in New Issue
Block a user