main.yml 264 B

12345678910111213141516171819
  1. ---
  2. - name: Install npm
  3. become: true
  4. apt:
  5. name: npm
  6. state: present
  7. - name: Install n
  8. become: true
  9. shell: npm i -g n
  10. - name: Install node lastest version
  11. become: true
  12. shell: n latest
  13. - name: Install yarn
  14. become: true
  15. shell: npm i -g yarn