mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2025-12-27 17:58:44 +00:00
bin path choice, proxy fix, common tasks
This commit is contained in:
parent
a6e521986b
commit
2fe632b325
7 changed files with 36 additions and 12 deletions
21
roles/common/tasks/main.yml
Normal file
21
roles/common/tasks/main.yml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
- name: Creating dotfiles dir
|
||||
ansible.builtin.file:
|
||||
path: "{{ ansible_env.HOME }}/.config"
|
||||
state: directory
|
||||
mode: a
|
||||
|
||||
- name: Creating local bin dir
|
||||
ansible.builtin.file:
|
||||
path: "{{ ansible_env.HOME }}/.local/bin"
|
||||
state: directory
|
||||
mode: a
|
||||
|
||||
- name: Getting programs list to check fish presence
|
||||
ansible.builtin.package_facts:
|
||||
manager: auto
|
||||
|
||||
- name: Updating fish path to include local bin dir
|
||||
ansible.builtin.shell: fish_add_path -m {{ ansible_env.HOME }}/.local/bin
|
||||
args:
|
||||
executable: /usr/bin/fish
|
||||
changed_when: false
|
||||
Loading…
Add table
Add a link
Reference in a new issue