---
- name: Check if bootstrap is needed
  become: yes
  become_method: sudo
  raw: stat /root/.bootstrapped
  register: need_bootstrap
  ignore_errors: True

- name: install python-simplejson
  raw: sudo apt-get -y install python-simplejson
  become_method: sudo

- name: INCLUDE | Configure Ansible User
  include: user.yml
  when: need_bootstrap|failed

- name: INCLUDE | Configure Network
  include: network.yml

- name: Create bootstrap file
  become: yes
  become_method: sudo
  file: path=/root/.bootstrapped state=touch
  when: need_bootstrap | failed

---
- name: Check if bootstrap is needed
  raw: stat /root/.bootstrapped
  register: need_bootstrap
  ignore_errors: True

- name: install python-simplejson
  raw:  apt-get update &&  apt-get -y install python-simplejson

- name: INCLUDE | Configure Ansible User
  include: user.yml
  when: need_bootstrap|failed

- name: INCLUDE | Configure Network
  include: network.yml

- name: Create bootstrap file
  file: path=/root/.bootstrapped state=touch
  when: need_bootstrap | failed

Update bootstrap for hypriotos v1.0.0
Update bootstrap for hypriotos v1.0.0
