node, fix lint issues: fix indentation, do not update cache or use the latest file, add a changed_chen to shell.
This commit is contained in:
@@ -23,16 +23,16 @@
|
|||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: extrepo
|
name: extrepo
|
||||||
state: present
|
state: present
|
||||||
update_cache: true
|
|
||||||
|
|
||||||
- name: Workstation | Software | NodeJS | apt | extrepo | Enable
|
- name: Workstation | Software | NodeJS | apt | extrepo | Enable
|
||||||
ansible.builtin.shell: "extrepo enable {{ node_version }}"
|
ansible.builtin.shell: "extrepo enable {{ node_version }}"
|
||||||
|
register: shell_check
|
||||||
|
changed_when: shell_check.rc == 0
|
||||||
|
|
||||||
- name: Workstation | Software | NodeJS | apt | Install
|
- name: Workstation | Software | NodeJS | apt | Install
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: nodejs
|
name: nodejs
|
||||||
state: latest
|
state: present
|
||||||
update_cache: true
|
|
||||||
|
|
||||||
when: ansible_pkg_mgr == "apt"
|
when: ansible_pkg_mgr == "apt"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user