diff --git a/README.md b/README.md index 62075e6..78e5af5 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,16 @@ # Client Playbook Playbook to setup Manjaro GNOME clients. +# Setup + +Run: +```bash +ansible-galaxy collection install -r requirements.yml +``` + # Todo - add printer +- add ssh +- add gnome plugins # See - https://www.middlewareinventory.com/blog/run-ansible-playbook-locally/ - https://stackoverflow.com/questions/30533372/run-an-ansible-task-only-when-the-hostname-contains-a-string diff --git a/playbook.yml b/playbook.yml index 0ac0c21..432c6d6 100644 --- a/playbook.yml +++ b/playbook.yml @@ -10,6 +10,11 @@ become: true roles: - native-games +- name: setup multiprinter hosts + hosts: epson_multiprinter_hosts + become: true + roles: + - native-epson-multiprinter - name: setup torbrowser hosts hosts: torbrowser_hosts become: true diff --git a/requirements.yml b/requirements.yml new file mode 100644 index 0000000..cad479a --- /dev/null +++ b/requirements.yml @@ -0,0 +1,2 @@ +collections: + - name: kewlfft.aur \ No newline at end of file diff --git a/roles/native-aur-helper/Readme.md b/roles/native-aur-helper/Readme.md new file mode 100644 index 0000000..e09c0da --- /dev/null +++ b/roles/native-aur-helper/Readme.md @@ -0,0 +1 @@ +https://github.com/kewlfft/ansible-aur \ No newline at end of file diff --git a/roles/native-aur-helper/tasks/main.yml b/roles/native-aur-helper/tasks/main.yml new file mode 100644 index 0000000..4c41498 --- /dev/null +++ b/roles/native-aur-helper/tasks/main.yml @@ -0,0 +1,25 @@ +- name: install yay + community.general.pacman: + name: yay + state: present + +- name: Create the `aur_builder` user + become: yes + ansible.builtin.user: + name: aur_builder + create_home: yes + group: wheel + +- name: Allow the `aur_builder` user to run `sudo pacman` without a password + become: yes + ansible.builtin.lineinfile: + path: /etc/sudoers.d/11-install-aur_builder + line: 'aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman' + create: yes + validate: 'visudo -cf %s' + +- name: Upgrade the system using yay, only act on AUR packages. + kewlfft.aur.aur: + upgrade: yes + use: yay + aur_only: yes \ No newline at end of file diff --git a/roles/native-epson-multiprinter/Readme.md b/roles/native-epson-multiprinter/Readme.md new file mode 100644 index 0000000..0d0eab2 --- /dev/null +++ b/roles/native-epson-multiprinter/Readme.md @@ -0,0 +1,9 @@ +# role native-epson-multiprinter +## further information +- https://bernhardsteindl.at/epson-ecotank-et-3600-unter-arch-linux-einrichten/ +- http://download.ebz.epson.net/dsc/search/01/search/searchModule +- https://aur.archlinux.org/packages/epson-inkjet-printer-escpr +- https://forum.manjaro.org/t/probleme-mit-epson-et-2820/109777/2 +- https://www.ordinatechnic.com/distribution-specific-guides/Arch/installing-an-epson-multifunction-printer-on-arch-linux-and-derivatives +- http://localhost:631/admin +- https://wiki.archlinux.org/title/SANE/Scanner-specific_problems \ No newline at end of file diff --git a/roles/native-epson-multiprinter/meta/main.yml b/roles/native-epson-multiprinter/meta/main.yml new file mode 100644 index 0000000..795fd09 --- /dev/null +++ b/roles/native-epson-multiprinter/meta/main.yml @@ -0,0 +1,2 @@ +dependencies: +- native-aur-helper \ No newline at end of file diff --git a/roles/native-epson-multiprinter/tasks/main.yml b/roles/native-epson-multiprinter/tasks/main.yml new file mode 100644 index 0000000..6d649a0 --- /dev/null +++ b/roles/native-epson-multiprinter/tasks/main.yml @@ -0,0 +1,12 @@ +- name: Install yay packages for epson + kewlfft.aur.aur: + use: yay + name: + - epson-printer-utility + - imagescan-plugin-networkscan + - epson-inkjet-printer-escpr + - epson-inkjet-printer-escpr2 +- name: install imagescan + community.general.pacman: + name: imagescan + state: present \ No newline at end of file