From c9fed8185d0765249596dd7f498ea0e7c0061a89 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 18 Aug 2022 07:16:21 +0200 Subject: [PATCH] Added role native-git --- README.md | 2 +- playbook.yml | 5 +- roles/general/tasks/main.yml | 51 ------------------- roles/native-administrator/meta/main.yml | 2 + roles/native-administrator/tasks/main.yml | 10 ++++ roles/native-general/tasks/main.yml | 43 ++++++++++++++++ roles/native-git/tasks/mail.yml | 8 +++ .../tasks/main.yml | 0 8 files changed, 67 insertions(+), 54 deletions(-) delete mode 100644 roles/general/tasks/main.yml create mode 100644 roles/native-administrator/meta/main.yml create mode 100644 roles/native-administrator/tasks/main.yml create mode 100644 roles/native-general/tasks/main.yml create mode 100644 roles/native-git/tasks/mail.yml rename roles/{pacman-update => native-pacman-update}/tasks/main.yml (100%) diff --git a/README.md b/README.md index 900461d2..62075e6e 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 6052753f..0ac0c218 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 87966373..00000000 --- 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 00000000..3bce5ffa --- /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 00000000..84f3d6d5 --- /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 00000000..81eed79d --- /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 00000000..a528ae0c --- /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