diff --git a/README.md b/README.md index 900461d..62075e6 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Client Playbook Playbook to setup Manjaro GNOME clients. # Todo -- Add Template folder +- add printer # 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 6052753..0ac0c21 100644 --- a/playbook.yml +++ b/playbook.yml @@ -2,8 +2,9 @@ hosts: all become: true roles: - - pacman-update - - general + - native-pacman-update + - native-general + - native-administrator - name: setup gaming hosts hosts: gaming_hosts become: true diff --git a/roles/general/tasks/main.yml b/roles/general/tasks/main.yml deleted file mode 100644 index 8796637..0000000 --- a/roles/general/tasks/main.yml +++ /dev/null @@ -1,51 +0,0 @@ -- name: install general software - community.general.pacman: - name: - # programing language interpreters - - jdk11-openjdk - - python - - php - - # description language interpreters - - texlive-most - - # compression tools - - p7zip - - # administration tools - - base-devel - - yay - - make - - gcc - - cmake - - fdupes - - # network analyze tools - - traceroute - - wireshark-qt - - wireshark-cli - - # security tools - - ecryptfs-utils - - encfs - - keepassxc - - # browsers - - chromium - - # video/picture manipulation - - gimp - - blender - - obs-studio - - # code quality tools - - shellcheck - - # ide's - - atom - - arduino - - arduino-docs - - # virtualization tools - - qemu - state: present diff --git a/roles/native-administrator/meta/main.yml b/roles/native-administrator/meta/main.yml new file mode 100644 index 0000000..3bce5ff --- /dev/null +++ b/roles/native-administrator/meta/main.yml @@ -0,0 +1,2 @@ +dependencies: +- native-git \ No newline at end of file diff --git a/roles/native-administrator/tasks/main.yml b/roles/native-administrator/tasks/main.yml new file mode 100644 index 0000000..84f3d6d --- /dev/null +++ b/roles/native-administrator/tasks/main.yml @@ -0,0 +1,10 @@ +- name: install administration tools + community.general.pacman: + name: + - base-devel + - yay + - make + - gcc + - cmake + - fdupes + state: present diff --git a/roles/native-general/tasks/main.yml b/roles/native-general/tasks/main.yml new file mode 100644 index 0000000..81eed79 --- /dev/null +++ b/roles/native-general/tasks/main.yml @@ -0,0 +1,43 @@ +- name: install general software + community.general.pacman: + name: + # programing language interpreters + #- jdk11-openjdk + #- python + #- php + + # description language interpreters + #- texlive-most + + # compression tools + #- p7zip + + # network analyze tools + #- traceroute + #- wireshark-qt + #- wireshark-cli + + # security tools + #- ecryptfs-utils + #- encfs + #- keepassxc + + # browsers + - chromium + + # video/picture manipulation + #- gimp + #- blender + #- obs-studio + + # code quality tools + #- shellcheck + + # ide's + #- atom + #- arduino + #- arduino-docs + + # virtualization tools + #- qemu + state: present diff --git a/roles/native-git/tasks/mail.yml b/roles/native-git/tasks/mail.yml new file mode 100644 index 0000000..a528ae0 --- /dev/null +++ b/roles/native-git/tasks/mail.yml @@ -0,0 +1,8 @@ +- name: Set git user email to {{user_email}} + ansible.builtin.shell: git config --global user.email "{{user_email}}" +- name: Set git user name to {{user_full_name}} + ansible.builtin.shell: - git config --global user.name "{{user_full_name}}" +- name: install git + community.general.pacman: + name: git + state: present \ No newline at end of file diff --git a/roles/pacman-update/tasks/main.yml b/roles/native-pacman-update/tasks/main.yml similarity index 100% rename from roles/pacman-update/tasks/main.yml rename to roles/native-pacman-update/tasks/main.yml