Deploy ROS to an Ubuntu machine.
The role configures package sources and installs packages. You need to run it with root privileges.
- ros_packages: A list of ros packages to install (sans the
ros-dist-
prefix).
Copy the ansible-role-ros to the user roles, otherwise the role won't be visible
cp ./ /home/$USER/.ansible/roles/ansible-role-ros -r
To setup a VM for each supported Ubuntu release with ros-base
, run
vagrant up
The Vagrant configuration uses a simple example playbook, setting up ROS like
roles:
- { role: ansible-role-ros, ros_packages: ['ros-base', 'urdfdom-py'] }
- Install from Ansible Galaxy.
- Remember that managed hosts need python-simplejson for playbook to work.
- Use the role like in the example playbook, but instead of ansible-role-ros, use pgorczak.ros.
- Make sure you have key-based access to a sudo user on the managed hosts.
- Tip: run ansible-playbook with
-u USERNAME
to specify the user and-K
to allow it to ask for the sudo password.