Install ROS2 on an Ubuntu host.
Steps performed are:
- Using role itnok.manage_pkg_ubuntu:
- Make sure build_essentials package is installed
- Add ROS2 repository key
- Install choosen ROS2 metapackage & basic tools
- Check installed packages
- Install RTI Connext DDS & middleware (Programmatically APPROVES license agreement!)
None.
Variable | Description | Default Value |
---|---|---|
install_ros2_distro |
Short name of the ROS distribution to install | dashing |
install_ros2 |
Name of the meta to install (ros-base , desktop ) |
ros-base |
To install dependencies use:
$ ansible-galaxy install <dependecy.name>
Installation of the required Ansible Roles can also be simply addressed with:
$ ansible-galaxy install -r requirements.yml
Here an example of how to use this role in your playbooks:
---
- hosts: servers
remote_user: ubuntu # optional (your remote user)
gather_facts: yes # optional
become: yes
roles:
- { role: itnok.install_ros2_ubuntu }
vars:
install_ros2_distro: "dashing"
install_ros2: "desktop"
MIT (read more)