- name: Ensure NodeJS is installed | |
include_role: | |
name: ensure-nodejs | |
vars: | |
node_version: 20 | |
- name: Check installed chrome-webstore-upload-cli version | |
command: "chrome-webstore-upload --version" | |
register: installed_version | |
failed_when: false | |
- name: Install chrome-webstore-upload-cli | |
command: "npm install --global chrome-webstore-upload-cli@{{ version }}" | |
when: | |
- installed_version.rc != 0 or (installed_version.stdout|trim) != version |