---

- name: Update apt
  apt: update_cache={{ update_apt_cache }}

- name: Install language pack
  apt: name={{ item }} force=yes state=latest
  with_items: "{{ language_packs }}"

- name: Ensure bash, OpenSSl, and libssl are the latest versions
  apt: name={{ item }} state=latest
  with_items:
    - bash
    - openssl
    - libssl-dev
    - libssl-doc

- name: Install base packages
  apt: name={{ item }} force=yes state=latest
  with_items:
    - build-essential
    - cmake
    - curl
    - gcc
    - linux-headers-server
    - linux-server
    - llvm
    - make
    - ntp
    - wget
    - linux-headers-{{ ansible_kernel }}

- name: Make sure ntp is running
  service: name=ntp state=started enabled=yes

---

- name: Update apt
  apt: update_cache={{ update_apt_cache }}

- name: Install language pack
  apt: name={{ item }} force=yes state=latest
  with_items: "{{ language_packs }}"

- name: Ensure bash, OpenSSl, and libssl are the latest versions
  apt: name={{ item }} state=latest
  with_items:
    - bash
    - openssl
    - libssl-dev
    - libssl-doc

- name: Install base packages
  apt: name={{ item }} force=yes state=present
  with_items:
    - build-essential
    - cmake
    - curl
    - gcc
    - linux-headers-server
    - linux-server
    - llvm
    - make
    - ntp
    - wget
    - linux-headers-{{ ansible_kernel }}

- name: Make sure ntp is running
  service: name=ntp state=started enabled=yes

Use present instead of latest
Use present instead of latest
