Tags überarbeitet und Aufbau des Playbooks angepasst

This commit is contained in:
PAN
2025-08-04 00:08:10 +02:00
parent 7e1d53339a
commit 98a2609249

View File

@@ -13,7 +13,7 @@
ansible.builtin.ping: ansible.builtin.ping:
- name: Erstellung Meines Benutzers. - name: Erstellung Meines Benutzers.
tags: User tags: Benutzer_erstellen
ansible.builtin.user: ansible.builtin.user:
append: true append: true
create_home: true create_home: true
@@ -24,7 +24,7 @@
update_password: on_create update_password: on_create
- name: Installation von Grundpaketen. - name: Installation von Grundpaketen.
tags: Test tags: IQP
block: block:
- name: Installation von RPM Paketen. - name: Installation von RPM Paketen.
ansible.builtin.dnf: ansible.builtin.dnf:
@@ -66,13 +66,14 @@
state: present state: present
loop: "{{ flatpaks }}" loop: "{{ flatpaks }}"
- name: Wechsel des default Target - name: Einrichtung des Desktop Envirement
tags: DE tags: DE
block:
- name: Wechsel des default Target
ansible.builtin.command: systemctl set-default graphical.target ansible.builtin.command: systemctl set-default graphical.target
changed_when: true changed_when: true
- name: Wechsel auf SDDM - name: Wechsel auf SDDM
tags: DE
ansible.builtin.systemd_service: ansible.builtin.systemd_service:
enabled: true enabled: true
force: true force: true
@@ -80,6 +81,7 @@
state: started state: started
- name: Terminal Anpassungen. - name: Terminal Anpassungen.
tags: TA
block: block:
- name: Aktiviere Zellij Corp - name: Aktiviere Zellij Corp
community.general.copr: community.general.copr:
@@ -108,7 +110,6 @@
mode: u=rwx,go=rw mode: u=rwx,go=rw
- name: Download des Oh-My-Posh Installationsscript - name: Download des Oh-My-Posh Installationsscript
tags: omp
ansible.builtin.get_url: ansible.builtin.get_url:
url: https://ohmyposh.dev/install.sh url: https://ohmyposh.dev/install.sh
dest: /tmp/install/ dest: /tmp/install/
@@ -117,7 +118,6 @@
mode: "{{ user_mode }}" mode: "{{ user_mode }}"
- name: Installation von Oh-My-Posh. - name: Installation von Oh-My-Posh.
tags: omp
ansible.builtin.shell: ansible.builtin.shell:
cmd: su - pan -c /tmp/install/install.sh cmd: su - pan -c /tmp/install/install.sh
args: args:
@@ -131,8 +131,6 @@
owner: "{{ user_name }}" owner: "{{ user_name }}"
group: "{{ user_name }}" group: "{{ user_name }}"
tags: omp
- name: Download der font - name: Download der font
ansible.builtin.get_url: ansible.builtin.get_url:
url: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.4.0/FiraCode.zip url: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.4.0/FiraCode.zip
@@ -148,7 +146,6 @@
state: directory state: directory
mode: "0755" mode: "0755"
become: true become: true
tags: omp
- name: Entpacken der Fire Nerd Font. - name: Entpacken der Fire Nerd Font.
ansible.builtin.unarchive: ansible.builtin.unarchive:
@@ -156,7 +153,6 @@
dest: /usr/share/fonts/nerd-fonts dest: /usr/share/fonts/nerd-fonts
remote_src: true remote_src: true
creates: /usr/share/fonts/nerd-fonts/FiraCode-Regular.ttf creates: /usr/share/fonts/nerd-fonts/FiraCode-Regular.ttf
tags: omp
- name: Installation des Fira Nerd Fonts. - name: Installation des Fira Nerd Fonts.
ansible.builtin.shell: ansible.builtin.shell:
@@ -167,9 +163,9 @@
tags: omp tags: omp
- name: Konfigurationsdateien anlegen - name: Konfigurationsdateien anlegen
tags: konfs
block: block:
- name: Erstellung des Konfigurationsorder für Alacritty. - name: Erstellung des Konfigurationsorder für Alacritty.
tags: alac
ansible.builtin.file: ansible.builtin.file:
path: /home/{{ user_name }}/{{ item }} path: /home/{{ user_name }}/{{ item }}
state: directory state: directory
@@ -186,7 +182,6 @@
owner: "{{ user_name }}" owner: "{{ user_name }}"
group: "{{ user_name }}" group: "{{ user_name }}"
mode: u=rw mode: u=rw
tags: alac
- name: Transfer der Bashrc Datei. - name: Transfer der Bashrc Datei.
ansible.builtin.copy: ansible.builtin.copy:
@@ -195,8 +190,10 @@
owner: "{{ user_name }}" owner: "{{ user_name }}"
group: "{{ user_name }}" group: "{{ user_name }}"
mode: u=rw,g=r,o=r mode: u=rw,g=r,o=r
tags: bash
- name: Aufräumarbeiten
tags: Aufr
block:
- name: Aufräumen des tmp pfad - name: Aufräumen des tmp pfad
ansible.builtin.file: ansible.builtin.file:
state: absent state: absent