make directories only when needed
This commit is contained in:
@@ -1,10 +1,35 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Depend go
|
||||
ansible.builtin.include_tasks:
|
||||
file: addpkg.yml
|
||||
- name: Ensure appimage path exists
|
||||
become: "{{ ext_become }}"
|
||||
listen: "Depend appimage"
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
mode: '0755'
|
||||
path: "{{ path.appimage }}"
|
||||
|
||||
- name: Ensure archive path exists
|
||||
become: "{{ ext_become }}"
|
||||
listen: "Depend archive"
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
mode: '0755'
|
||||
path: "{{ path.archive }}"
|
||||
|
||||
- name: Ensure go is present
|
||||
vars:
|
||||
pkg: go
|
||||
listen: "Depend go"
|
||||
ansible.builtin.include_tasks:
|
||||
file: addpkg.yml
|
||||
|
||||
- name: Ensure go path exists
|
||||
become: "{{ ext_become }}"
|
||||
listen: "Depend go"
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
mode: '0755'
|
||||
path: "{{ path.go }}"
|
||||
|
||||
- name: Depend flatpak
|
||||
vars:
|
||||
@@ -18,24 +43,51 @@
|
||||
ansible.builtin.include_tasks:
|
||||
file: addpkg.yml
|
||||
|
||||
- name: Depend pipx
|
||||
- name: Ensure pipx is installed
|
||||
vars:
|
||||
pkg: pipx
|
||||
listen: "Depend pipx"
|
||||
ansible.builtin.include_tasks:
|
||||
file: addpkg.yml
|
||||
|
||||
- name: Depend cargo
|
||||
- name: Ensure pipx path exists
|
||||
become: "{{ ext_become }}"
|
||||
listen: "Depend pipx"
|
||||
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: Depend zig
|
||||
vars:
|
||||
pkg: zig
|
||||
|
||||
Reference in New Issue
Block a user