diff --git a/playbooks/roles/arch/tasks/aur.yml b/playbooks/roles/arch/tasks/aur.yml new file mode 100644 index 0000000..09ff3fe --- /dev/null +++ b/playbooks/roles/arch/tasks/aur.yml @@ -0,0 +1,16 @@ +--- +- aur: name=paru + become: yes + become_user: aur_builder + +- aur: name=neovim-nightly + become: yes + become_user: aur_builder + when: + - nightly_neovim == true + +- aur: name=mcfly + become: yes + become_user: aur_builder + when: + - rust_extras == false diff --git a/playbooks/roles/arch/tasks/main.yml b/playbooks/roles/arch/tasks/main.yml index 32efc30..1e7bdef 100644 --- a/playbooks/roles/arch/tasks/main.yml +++ b/playbooks/roles/arch/tasks/main.yml @@ -16,7 +16,6 @@ - cmake - tmux - gnupg - - fzf - rsync state: latest @@ -67,36 +66,4 @@ create: yes validate: 'visudo -cf %s' -- name: Create yay tmp directory - when: - - dev_machine == true - file: - dest: /tmp/yay - state: directory - mode: '0755' - owner: aur_builder - group: wheel - -- name: clone yay from github - when: - - dev_machine == true - become: true - become_user: aur_builder - git: - repo: https://aur.archlinux.org/yay.git - dest: /tmp/yay - version: master - update: yes - # notify: makepkg -si - -- name: Makepkg yay - when: - - dev_machine == true - become: yes - become_user: aur_builder - command: makepkg --noconfirm -si - args: - chdir: /tmp/yay - creates: /usr/bin/yay - -- include_tasks: neovim-nightly.yml +- include_tasks: aur.yml diff --git a/playbooks/roles/arch/tasks/neovim-nightly.yml b/playbooks/roles/arch/tasks/neovim-nightly.yml deleted file mode 100644 index 07e4580..0000000 --- a/playbooks/roles/arch/tasks/neovim-nightly.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -- aur: name=neovim-nightly - become: yes - become_user: aur_builder - when: - - nightly_neovim == true diff --git a/playbooks/roles/rust/tasks/main.yml b/playbooks/roles/rust/tasks/main.yml index 261cc87..cbd114b 100644 --- a/playbooks/roles/rust/tasks/main.yml +++ b/playbooks/roles/rust/tasks/main.yml @@ -112,3 +112,16 @@ when: - rust_extras == true +- name: Install dog + shell: ~/.cargo/bin/cargo install --git https://github.com/ogham/dog dog + args: + creates: ~/.cargo/bin/dog + when: + - rust_extras == true + +- name: Install mcfly + shell: ~/.cargo/bin/cargo install mcfly + args: + creates: ~/.cargo/bin/mcfly + when: + - rust_extras == true