diff --git a/packer/ansible/roles/fablab/tasks/main.yml b/packer/ansible/roles/fablab/tasks/main.yml index 891123b..2981e75 100644 --- a/packer/ansible/roles/fablab/tasks/main.yml +++ b/packer/ansible/roles/fablab/tasks/main.yml @@ -24,5 +24,8 @@ - import_tasks: prusa.yml tags: - fablab:prusa + - import_tasks: platformio.yml + tags: + - fablab:platformio tags: - fablab diff --git a/packer/ansible/roles/fablab/tasks/platformio.yml b/packer/ansible/roles/fablab/tasks/platformio.yml new file mode 100644 index 0000000..c2b3cca --- /dev/null +++ b/packer/ansible/roles/fablab/tasks/platformio.yml @@ -0,0 +1,15 @@ +--- +- name: Ensure pip3 is installed + apt: + name: python3-pip + +- name: Install platformio via pip + pip: + name: platformio + state: latest + executable: pip3 + +- name: Add guest user to dialout group + lineinfile: + path: /etc/guest-account/groups + line: dialout