---
- name: update apt index
  apt: update_cache=yes

- name: python dependencies
  apt: pkg={{ item }}
  with_items:
    - python-pip
    - python-libxml2
    - python-lxml
    - python-greenlet
    - python-openssl
    - python-dev
    - python-httplib2
    - python-software-properties

- apt: pkg={{ item }}
  with_items:
    - ntp
    - vlan

- name: set UTC timezone
  copy: content='Etc/UTC' dest=/etc/timezone owner=root group=root mode=0644
  notify:
    - update timezone

- name: /opt/stack
  file: dest=/opt/stack state=directory

- include: ssl.yml
- include: ssh.yml
- include: networking.yml
- include: system_tools.yml

# run this last so we only update if run was successful
- name: drop an motd with ursula metadata
  action: template src=etc/motd.tail dest=/etc/motd.tail mode=0644

---
- name: update apt index
  apt: update_cache=yes

- name: python dependencies
  apt: pkg={{ item }}
  with_items:
    - python-pip
    - python-libxml2
    - python-lxml
    - python-greenlet
    - python-openssl
    - python-dev
    - python-httplib2
    - python-software-properties
    - python-virtualenv

- apt: pkg={{ item }}
  with_items:
    - ntp
    - vlan

- name: set UTC timezone
  copy: content='Etc/UTC' dest=/etc/timezone owner=root group=root mode=0644
  notify:
    - update timezone

- name: /opt/stack
  file: dest=/opt/stack state=directory

- include: ssl.yml
- include: ssh.yml
- include: networking.yml
- include: system_tools.yml

# run this last so we only update if run was successful
- name: drop an motd with ursula metadata
  action: template src=etc/motd.tail dest=/etc/motd.tail mode=0644

Add python-virtualenv to the python dependencies
Add python-virtualenv to the python dependencies

Sometimes it would be advantageous to run python services/scripts
inside of a virtualenv so that we do not pollute the standard
python sysem library paths.
