Collection for automating baremetal tasks.
- install_eabi_arm_gcc: Installs the arm-none-eabi-gcc compiler
- install_jlink: Installs SEGGER J-Link tools
- install_can_tools: Installs can-utils and PEAK CAN driver
You can install this collection in two ways:
ansible-galaxy collection install paulfirs.baremetal- Clone or download this repository
$ cd ansible-collection-baremetal/$ ansible-galaxy collection build$ ansible-galaxy collection install paulfirs-baremetal-<version>.tar.gz(use --forceto overwrite existing version)
Then use the collection as shown below.
- Create a playbook file, for example,
site.ymlor use one of theexamples/playbooks:
- hosts: all
become: yes # Run tasks with root privileges (recommended)
roles:
- paulfirs.baremetal.install_eabi_arm_gcc
- paulfirs.baremetal.install_jlink
- paulfirs.baremetal.install_can_tools- Run the playbook with the command:
ansible-playbook -i "user@host," examples/site.yml --ask-pass --ask-become-pass-i "user@host,"— inline inventory (you can also use an inventory file)--ask-pass— prompt for SSH user password--ask-become-pass— prompt for sudo password
See the Ansible documentation for more details on syntax and configuration.