I always wonder what is the good way to replace the following shell tasks using the \"ansible way\" (with get_url, etc.):
- name: I
Consider using the get_url or uri module rather than running
curl.
For example:
- name: Download setup_8.x script
get_url: url=https://deb.nodesource.com/setup_8.x dest=/opt mode=755
- name: Setup Node.js
command: /opt/setup_8.x
- name: Install Node.js (JavaScript run-time environment)
apt: name=nodejs state=present