lint fixes
This commit is contained in:
@@ -1,27 +1,28 @@
|
||||
---
|
||||
- name: Chocolatey install multiple
|
||||
hosts: "{{ HOSTS | default('windows') }}"
|
||||
hosts: "{{ _hosts | default('os_windows') }}"
|
||||
gather_facts: false
|
||||
vars:
|
||||
choco_packages:
|
||||
- name: nodejs
|
||||
- name: python
|
||||
tasks:
|
||||
- name: Install specific versions of packages sequentially
|
||||
win_chocolatey:
|
||||
name: "{{ item.name }}"
|
||||
state: latest
|
||||
loop: "{{ choco_packages }}"
|
||||
- name: Install specific versions of packages sequentially
|
||||
chocolatey.chocolatey.win_chocolatey:
|
||||
name: "{{ item.name }}"
|
||||
state: installed
|
||||
loop: "{{ choco_packages }}"
|
||||
|
||||
- name: Check python version
|
||||
win_command: python --version
|
||||
register: check_python_version
|
||||
changed_when: false
|
||||
- name: Check python version
|
||||
ansible.windows.win_command: python --version
|
||||
register: check_python_version
|
||||
changed_when: false
|
||||
|
||||
- name: Check nodejs version
|
||||
win_command: node --version
|
||||
register: check_node_version
|
||||
changed_when: false
|
||||
- name: Check nodejs version
|
||||
ansible.windows.win_command: node --version
|
||||
register: check_node_version
|
||||
changed_when: false
|
||||
|
||||
- debug:
|
||||
msg: Python Version is {{ check_python_version.stdout_lines[0] }} and NodeJS version is {{ check_node_version.stdout_lines[0] }}
|
||||
- name: Print message
|
||||
ansible.builtin.debug:
|
||||
msg: Python Version is {{ check_python_version.stdout_lines[0] }} and NodeJS version is {{ check_node_version.stdout_lines[0] }}
|
||||
|
||||
Reference in New Issue
Block a user