---
- name: Add the Rust PPA
  apt_repository: repo="ppa:hansjorg/rust"

- name: Install the Rust compiler
  apt: name=rust-{{ rust_version }} state=present


---
- name: Download the installation script
  get_url: url=http://static.rust-lang.org/rustup.sh dest=/tmp/rustup.sh owner=root group=root mode=0755

- name: Install Rust
  command: /tmp/rustup.sh

- name: Clean up the installation script
  file: path=/tmp/rustup.sh state=absent


Switch to Rust nightlies using rustup.
Switch to Rust nightlies using rustup.
