---
- hosts: webservers
  roles:
    - role: kamaln7.swapfile
      swapfile_size: 1GB
      become: yes
    - role: nodesource.node
      become: yes
    - role: Datadog.datadog
      datadog_api_key: "{{ datadog.api_key }}"
      when: deployment == "production"
    - web

---
- hosts: webservers
  roles:
    - role: kamaln7.swapfile
      swapfile_size: 2GB
      become: yes
    - role: nodesource.node
      become: yes
    - role: Datadog.datadog
      datadog_api_key: "{{ datadog.api_key }}"
      when: deployment == "production"
    - web

Increase swap file size because npm is stupid.
Increase swap file size because npm is stupid.
