parent
8f3f97cf90
commit
6fba154cdf
|
@ -17,6 +17,7 @@ default_roles:
|
||||||
- neovim-packer
|
- neovim-packer
|
||||||
- notion-app
|
- notion-app
|
||||||
- platformsh-cli
|
- platformsh-cli
|
||||||
|
- pulumi
|
||||||
- pv
|
- pv
|
||||||
- ripgrep
|
- ripgrep
|
||||||
- stylua
|
- stylua
|
||||||
|
|
23
roles/pulumi/tasks/main.yaml
Normal file
23
roles/pulumi/tasks/main.yaml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
---
|
||||||
|
- name: Existing install
|
||||||
|
stat:
|
||||||
|
path: "{{ ansible_user_dir }}/.pulumi/bin/pulumi"
|
||||||
|
register: install
|
||||||
|
|
||||||
|
- name: Download installer
|
||||||
|
ansible.builtin.get_url:
|
||||||
|
dest: /tmp/pulumi-install.sh
|
||||||
|
mode: 0755
|
||||||
|
url: https://get.pulumi.com
|
||||||
|
become: true
|
||||||
|
when: not install.stat.exists
|
||||||
|
|
||||||
|
- name: Execute installer
|
||||||
|
ansible.builtin.command: sh /tmp/pulumi-install.sh
|
||||||
|
when: not install.stat.exists
|
||||||
|
|
||||||
|
- name: Remove pulumi-install.sh
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /tmp/pulumi-install.sh
|
||||||
|
state: absent
|
||||||
|
become: true
|
|
@ -9,6 +9,7 @@ $HOME/.dotfiles/bin:\
|
||||||
$HOME/.dotfiles/bin/bin:\
|
$HOME/.dotfiles/bin/bin:\
|
||||||
$HOME/.local/bin:\
|
$HOME/.local/bin:\
|
||||||
$HOME/.platformsh/bin:\
|
$HOME/.platformsh/bin:\
|
||||||
|
$HOME/.pulumi/bin:\
|
||||||
$HOME/bin:\
|
$HOME/bin:\
|
||||||
$HOME/snap/bin:\
|
$HOME/snap/bin:\
|
||||||
bin:\
|
bin:\
|
||||||
|
|
Loading…
Reference in a new issue