Skip to content

Commit

Permalink
Separate Ansible tasks related to vcs import to new role (#180)
Browse files Browse the repository at this point in the history
* Separate Ansible tasks related to vcs import to new role

* Move the Ansible task to install vcstool to the ROS2 role
  • Loading branch information
rxnew authored Mar 3, 2021
1 parent 8589ae4 commit a9b7534
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
15 changes: 8 additions & 7 deletions ansible/localhost-setup-ubuntu20.04-devpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
prompt: "[Warning]: Skip install GPU modules. Try manually installing these modules to execute nodes depending on TensorRT."
when: yn_gpu != 'y'
roles:
- { role: cuda, when: yn_gpu == 'y' }
- { role: tensorrt, when: yn_gpu == 'y' }
- { role: ros2, rosdistro: foxy }
- { role: autoware, rosdistro: foxy }
- { role: kvaser } # Temporary for ros2 porting
# - { role: pacmod, rosdistro: foxy } # Temporary for ros2 porting
# - { role: ros, release: melodic }
- { role: cuda, when: yn_gpu == 'y', tags: ["cuda"] }
- { role: tensorrt, when: yn_gpu == 'y', tags: ["tensorrt"] }
- { role: ros2, rosdistro: foxy, tags: ["ros2"] }
- { role: vcs, tags: ["vcs"] }
- { role: autoware, rosdistro: foxy, tags: ["autoware"] }
- { role: kvaser, tags: ["kvaser"] } # Temporary for ros2 porting
# - { role: pacmod, rosdistro: foxy, tags: ["pacmod"] } # Temporary for ros2 porting
# - { role: ros, release: melodic, tags: ["ros"] }
8 changes: 0 additions & 8 deletions ansible/roles/autoware/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
---
- name: Autoware (make directory)
file:
path: "{{ AUTOWARE_DIR }}/src"
state: directory

- name: Autoware (vcs import)
shell: vcs import {{ AUTOWARE_DIR }}/src < {{ AUTOWARE_DIR }}/autoware.proj.repos

- name: Autoware (update rosdep)
command: rosdep update
become: yes
Expand Down
8 changes: 8 additions & 0 deletions ansible/roles/vcs/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
- name: VCS (make directory)
file:
path: "{{ AUTOWARE_DIR }}/src"
state: directory

- name: VCS (vcs import)
shell: vcs import {{ AUTOWARE_DIR }}/src < {{ AUTOWARE_DIR }}/autoware.proj.repos

0 comments on commit a9b7534

Please sign in to comment.