Install cargo only if pkg_cargo needs it

This commit is contained in:
Matthew Stobbs
2025-05-10 12:55:10 -06:00
parent 7183372163
commit 454f2fab73
20 changed files with 117 additions and 109 deletions

View File

@@ -19,13 +19,13 @@
- name: Ensure go is present
vars:
pkg: go
listen: "Depend go"
listen: Depend go
ansible.builtin.include_tasks:
file: addpkg.yml
- name: Ensure go path exists
become: "{{ ext_become }}"
listen: "Depend go"
listen: Depend go
ansible.builtin.file:
state: directory
mode: '0755'
@@ -46,47 +46,47 @@
- name: Ensure pipx is installed
vars:
pkg: pipx
listen: "Depend pipx"
listen: Depend pipx
ansible.builtin.include_tasks:
file: addpkg.yml
- name: Ensure pipx path exists
become: "{{ ext_become }}"
listen: "Depend pipx"
listen: Depend pip"
ansible.builtin.file:
state: directory
mode: '0755'
path: "{{ path.pipx }}"
- name: Ensure rust and cargo are installed
vars:
pkg: rust
listen: "Depend cargo"
ansible.builtin.include_tasks:
file: addpkg.yml
- name: Ensure cargo path exists
become: "{{ ext_become }}"
listen: "Depend cargo"
ansible.builtin.file:
state: directory
mode: '0755'
path: "{{ path.cargo }}"
- name: Depend rust
vars:
pkg: rust
listen: "Depend rust"
ansible.builtin.include_tasks:
file: addpkg.yml
- name: Ensure cargo path exists
become: "{{ ext_become }}"
listen: "Depend rust"
ansible.builtin.file:
state: directory
mode: '0755'
path: "{{ path.cargo }}"
# - name: Ensure rust and cargo are installed
# vars:
# pkg: rust
# listen: Depend cargo
# ansible.builtin.include_tasks:
# file: addpkg.yml
#
# - name: Ensure cargo path exists
# become: "{{ ext_become }}"
# listen: Depend cargo
# ansible.builtin.file:
# state: directory
# mode: '0755'
# path: "{{ path.cargo }}"
#
# - name: Depend rust
# vars:
# pkg: rust
# listen: "Depend rust"
# ansible.builtin.include_tasks:
# file: addpkg.yml
#
# - name: Ensure cargo path exists
# become: "{{ ext_become }}"
# listen: "Depend rust"
# ansible.builtin.file:
# state: directory
# mode: '0755'
# path: "{{ path.cargo }}"
- name: Depend zig
vars: