Skip to content

Commit

Permalink
Merge pull request #12 from opendevshop/force-install-cli
Browse files Browse the repository at this point in the history
Force install cli
  • Loading branch information
jonpugh authored Jan 11, 2019
2 parents e88c483 + d26ed47 commit ff6c373
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,20 @@
become_user: "{{ aegir_user_name }}"
become_method: "{{ ansible_become_method_aegir }}"

- name: Detect devshop CLI
- name: Detect DevShop CLI
stat:
path: "{{ devshop_cli_path }}"
register: cliPath

- name: Install devshop CLI if it is not present.
when: cliPath.stat.islnk is not defined
- name: Install DevShop CLI
# This should always be set so the devshop cli is set to the latest version, in case this is being run just via playbooks and not the verify:system command.
# when: cliPath.stat.islnk is not defined
git:
repo: "{{ devshop_cli_repo }}"
version: "{{ devshop_cli_version }}"
update: "{{ devshop_cli_update }}"
dest: "{{ devshop_cli_path }}"
force: "yes"

- name: Setup devshop CLI
command: "{{ composer_path }} install"
Expand Down

0 comments on commit ff6c373

Please sign in to comment.