diff --git a/roles/common/tasks/hardware.yml b/roles/common/tasks/hardware.yml new file mode 100644 index 0000000..badf0b0 --- /dev/null +++ b/roles/common/tasks/hardware.yml @@ -0,0 +1,8 @@ +--- + +- name: enable uart on boot + lineinfile: + dest=/boot/config.txt + regexp="^enable_uart=" + line="enable_uart=1" + state=present diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 9f1e4c9..6a5a111 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -41,3 +41,4 @@ # Other tasks - include: software.yml - include: users.yml +- include: hardware.yml