Skip to content

Commit

Permalink
Add pimcore_cloud_cli
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiashamacher committed Aug 19, 2024
1 parent c409221 commit 25aee73
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions group_vars/all/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ default_roles:
- onepassword
- orbstack
- php
- pimcore_cloud_cli
- pinentry_mac
- platformsh_cli
- prettier
Expand Down
4 changes: 4 additions & 0 deletions roles/pimcore_cloud_cli/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
dependencies:
- role: platformsh_cli
- role: php
5 changes: 5 additions & 0 deletions roles/pimcore_cloud_cli/tasks/darwin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- name: "Pimcore Cloud CLI | Install pimcore-cloud CLI"

Check failure on line 2 in roles/pimcore_cloud_cli/tasks/darwin.yml

View workflow job for this annotation

GitHub Actions / Lint

command-instead-of-module

curl used in place of get_url or uri module

Check failure on line 2 in roles/pimcore_cloud_cli/tasks/darwin.yml

View workflow job for this annotation

GitHub Actions / Lint

risky-shell-pipe

Shells that use pipes should set the pipefail option.
ansible.builtin.shell: "curl -sfS https://cli.pimcore.cloud/installer | php"
changed_when:
- result.rc != 0
4 changes: 4 additions & 0 deletions roles/pimcore_cloud_cli/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
- name: Run Darwin Tasks
ansible.builtin.import_tasks: darwin.yml
when: ansible_os_family == 'Darwin'

0 comments on commit 25aee73

Please sign in to comment.