Skip to content

Commit

Permalink
Install ros-galactic-ros2cli-common-extensions in ansible (#183)
Browse files Browse the repository at this point in the history
* Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

Install ros-galactic-ros2cli-common-extensions in ansible

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* Add descriptions of rosbag2 purge
  • Loading branch information
kosuke55 committed Jul 26, 2021
1 parent 87ea7ed commit c266622
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ansible/roles/ros2/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,24 @@
become: yes

# Required to build rosbag2 from source until the delay option is released.
# Cannot built the source if it is installed with apt due to an include order bug.
# https://github.com/ros2/rosbag2/issues/820
# https://github.com/ros2/rosbag2/issues/698
- name: ROS2 (purge ros-{{ rosdistro }}-rosbag2*)
apt:
name: "ros-{{ rosdistro }}-rosbag2*"
state: absent
purge: yes
become: yes

# It may be removed with rosbag2.
- name: ROS2 (install ros-galactic-ros2cli-common-extensions)
apt:
name: "ros-{{ rosdistro }}-ros2cli-common-extensions"
state: latest
update_cache: yes
become: yes

- name: ROS2 (Add settings to .bashrc)
lineinfile:
dest: ~/.bashrc
Expand Down

0 comments on commit c266622

Please sign in to comment.