feat(role): add pulumi

Fixes: #31
This commit is contained in:
Oliver Davies 2022-06-16 10:29:32 +01:00
parent 8f3f97cf90
commit 6fba154cdf
3 changed files with 25 additions and 0 deletions

View file

@ -17,6 +17,7 @@ default_roles:
- neovim-packer
- notion-app
- platformsh-cli
- pulumi
- pv
- ripgrep
- stylua

View 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

View file

@ -9,6 +9,7 @@ $HOME/.dotfiles/bin:\
$HOME/.dotfiles/bin/bin:\
$HOME/.local/bin:\
$HOME/.platformsh/bin:\
$HOME/.pulumi/bin:\
$HOME/bin:\
$HOME/snap/bin:\
bin:\