Commit 08de6da6 authored by Jakob Levisen Kvistgaard's avatar Jakob Levisen Kvistgaard
Browse files

vm setup playbook created

parent 46984564
......@@ -10,7 +10,7 @@ all:
# 192.168.4.2:
# 192.168.4.3:
# 192.168.4.4:
192.168.4.5:
192.168.4.6:
vars:
robot_repos:
- { name: "drobotti-drivers", branch: "foxy"}
......@@ -22,9 +22,9 @@ all:
- { name: "rplidar_ros", work_dir: "{{ ansible_facts.user_dir }}/drobotti-drivers" }
service_files:
- { name: "rplidar", repo: "drobotti-drivers", cmd_string: "ros2 launch rplidar_ros rplidar.launch.py", description: "ROS2 lidar driver service."}
- { name: "imu", repo: "drobotti-drivers", cmd_string: "ros2 launch imu_bno055 imu_launch.py", description: "IMU BNO055 ros2 node driver service."}
#- { name: "imu", repo: "drobotti-drivers", cmd_string: "ros2 launch imu_bno055 imu_launch.py", description: "IMU BNO055 ros2 node driver service."}
- { name: "robotti_steering", user: "root", repo: "drobotti-drivers", cmd_string: "ros2 launch robotti_steering robotti_steering_launch.py", description: "Steering ros2 node driver service."}
vm:
hosts:
192.168.4.5:
\ No newline at end of file
192.168.112.130:
\ No newline at end of file
- name: Prime ubuntu distribution
hosts: all
remote_user: "{{ drobotti_user }}"
gather_facts: yes
tasks:
- include_role:
name: common
tasks_from: deploy_ssh_key
- include_role:
name: common
tasks_from: auth_on_sudo_remove
- include_role:
name: common
tasks_from: change_password
\ No newline at end of file
- name: Deploy vm
hosts: vm
remote_user: "{{ drobotti_user }}"
gather_facts: yes
tasks:
- include_role:
name: common
tasks_from: deploy_ssh_key
tags:
- setup
- include_role:
name: common
tasks_from: auth_on_sudo_remove
tags:
- setup
- name: ROS2 setup locale
include_role:
name: ros2
tasks_from: locales
tags:
- setup
- name: Set ROS2 apt sources
include_role:
name: ros2
tasks_from: apt_sources
tags:
- setup
- name: Install ROS2 and build tools
include_role:
name: ros2
tasks_from: install_ros2
tags:
- setup
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment