just finished cbfmt
This commit is contained in:
@@ -1,13 +1,31 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add bufls
|
||||
when:
|
||||
- bufls_configured is undefined
|
||||
block:
|
||||
- name: Append bufls to pkg_go
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf-language-server/cmd/bufls@latest'] }}"
|
||||
- name: Set default bufls options
|
||||
ansible.builtin.set_fact:
|
||||
bufls:
|
||||
install_methods:
|
||||
- source
|
||||
version: latest
|
||||
go_pkg: github.com/bufbuild/buf-language-server/cmd/bufls
|
||||
|
||||
- name: Set bufls_configured
|
||||
- name: Configure bufls install
|
||||
when:
|
||||
- "'bufls' not in __configured"
|
||||
block:
|
||||
- name: Set bufls install method
|
||||
ansible.builtin.set_fact:
|
||||
bufls_configured: true
|
||||
bufls_install_method: "{{ install_method if install_method in bufls.install_methods else bufls.install_methods[0] }}"
|
||||
|
||||
- name: Configure bufls source install
|
||||
when:
|
||||
- bufls_install_method == 'source'
|
||||
block:
|
||||
- name: Configure bufls go install
|
||||
ansible.builtin.set_fact:
|
||||
bufls_go_install:
|
||||
url: "{{ bufls.go_pkg }}@{{ bufls.version }}"
|
||||
bin: "{{ path_bin }}/bufls"
|
||||
|
||||
- name: Finalise bufls configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'bufls': bufls_install_method } ) }}"
|
||||
|
||||
Reference in New Issue
Block a user