---
# Install common dependencies
- name: update package repo
  apt: update_cache=yes upgrade=safe
- name: install packages
  apt:
    name: "{{item}}"
    state: installed
  with_items:
    - acl  # required by Ansible 2.1 to become_user
    - build-essential
    - curl
    - emacs24-nox
    - git
    - ntp
    - vim

# Common configuration
- name: set timezone variables
  copy:
    content: "Europe/Paris\n"
    dest: "/etc/timezone"
    owner: root
    group: root
    mode: 0644
  notify: update_timezone
- name: generate locale
  locale_gen:
    name: "en_US"
    state: present
- name: set locale
  copy:
    content: "LANG=en_US\nLC_ALL=en_US"
    dest: "/etc/default/locale"
    owner: root
    group: root
    mode: 0644
- name: set default editor to emacs
  alternatives:
    name: editor
    path: "/usr/bin/emacs"

---
# Install common dependencies
- name: update package repo
  apt: update_cache=yes upgrade=safe
- name: install apt packages
  apt: name={{item}} state=installed
  with_items:
    - acl  # required by Ansible 2.1 to become_user
    - build-essential
    - curl
    - emacs24-nox
    - git
    - ntp
    - python-pip
    - vim
- name: install Python dependencies
  pip: name={{item}}
  with_items:
    - ndg-httpsclient
    - pyasn1

# Common configuration
- name: set timezone variables
  copy:
    content: "Europe/Paris\n"
    dest: "/etc/timezone"
    owner: root
    group: root
    mode: 0644
  notify: update_timezone
- name: generate locale
  locale_gen:
    name: "en_US"
    state: present
- name: set locale
  copy:
    content: "LANG=en_US\nLC_ALL=en_US"
    dest: "/etc/default/locale"
    owner: root
    group: root
    mode: 0644
- name: set default editor to emacs
  alternatives:
    name: editor
    path: "/usr/bin/emacs"

Add missing deps for "add apt key for nodesource" step
fix(deployment): Add missing deps for "add apt key for nodesource" step
