Anpassung des Bezeichnug der einzelnen Tasks
This commit is contained in:
68
main.yml
68
main.yml
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: Linux Installaton Meines PCs
|
- name: Linux Installation Meines PCs.
|
||||||
remote_user: ansi
|
remote_user: ansi
|
||||||
hosts: MeinTest
|
hosts: MeinTest
|
||||||
become: true
|
become: true
|
||||||
@@ -8,11 +8,11 @@
|
|||||||
- ./vars/Programm_liste.yaml
|
- ./vars/Programm_liste.yaml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Erreichbarkeit des Ziels Prüfen
|
- name: Erreichbarkeit des Ziels Prüfen.
|
||||||
ansible.builtin.ping:
|
ansible.builtin.ping:
|
||||||
data: Pong
|
data: Pong
|
||||||
|
|
||||||
- name: Erstellung Meines benutzers
|
- name: Erstellung Meines Benutzers.
|
||||||
tags: User
|
tags: User
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
append: true
|
append: true
|
||||||
@@ -21,33 +21,33 @@
|
|||||||
shell: "{{ user_shell }}"
|
shell: "{{ user_shell }}"
|
||||||
groups: "{{ user_groups }}"
|
groups: "{{ user_groups }}"
|
||||||
password: "{{ user_password | password_hash('sha256') }}"
|
password: "{{ user_password | password_hash('sha256') }}"
|
||||||
update_password: always
|
update_password: on_create
|
||||||
|
|
||||||
- name: Install Grundpackete
|
- name: Installation von Grundpaketen.
|
||||||
tags: Test
|
tags: Test
|
||||||
block:
|
block:
|
||||||
- name: Install RPM Packete
|
- name: Installation von RPM Paketen.
|
||||||
ansible.builtin.dnf:
|
ansible.builtin.dnf:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
disable_gpg_check: true
|
disable_gpg_check: true
|
||||||
loop:
|
loop:
|
||||||
- "{{ rpm_packete }}"
|
- "{{ rpm_Pakete }}"
|
||||||
|
|
||||||
- name: Update cach fü DNF
|
- name: Aktualisierung des dnf caches.
|
||||||
ansible.builtin.dnf5:
|
ansible.builtin.dnf5:
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
|
||||||
- name: Install DNF Packete
|
- name: Installation von DNF Paketen.
|
||||||
ansible.builtin.dnf:
|
ansible.builtin.dnf:
|
||||||
autoremove: true
|
autoremove: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
use_backend: dnf5
|
use_backend: dnf5
|
||||||
skip_broken: true
|
skip_broken: true
|
||||||
loop:
|
loop:
|
||||||
- "{{ dnf_Packete }}"
|
- "{{ dnf_Pakete }}"
|
||||||
|
|
||||||
- name: Install flathub
|
- name: Hinzufügen von der Quelle flathub.
|
||||||
become_user: "{{ user_name }}"
|
become_user: "{{ user_name }}"
|
||||||
become: true
|
become: true
|
||||||
community.general.flatpak_remote:
|
community.general.flatpak_remote:
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo
|
flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||||
method: user
|
method: user
|
||||||
|
|
||||||
- name: Install Obsidan
|
- name: Installation von Paketen über Flathub mittels Flatpak.
|
||||||
become_user: "{{ user_name }}"
|
become_user: "{{ user_name }}"
|
||||||
become: true
|
become: true
|
||||||
community.general.flatpak:
|
community.general.flatpak:
|
||||||
@@ -87,18 +87,22 @@
|
|||||||
name: Zellij
|
name: Zellij
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Download Oh-My-Posh
|
- name: Download des Oh-My-Posh Installationsscript
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: https://ohmyposh.dev/install.sh
|
url: https://ohmyposh.dev/install.sh
|
||||||
dest: /tmp/
|
dest: /tmp/
|
||||||
owner: "{{ user_name }}"
|
owner: "{{ user_name }}"
|
||||||
group: "{{ user_name }}"
|
group: "{{ user_name }}"
|
||||||
|
mode: "{{ user_mode }}"
|
||||||
|
|
||||||
tags: omp
|
tags: omp
|
||||||
|
|
||||||
- name: Install Oh-My-Posh
|
- name: Installation von Oh-My-Posh.
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
cmd: su - pan -c /tmp/install.sh
|
cmd: su - pan -c /tmp/install.sh
|
||||||
tags: omp
|
tags: omp
|
||||||
|
args:
|
||||||
|
creates: /var/log/taskrunner.done
|
||||||
|
|
||||||
- name: Ordner für Font installer erstellen
|
- name: Ordner für Font installer erstellen
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
@@ -119,18 +123,46 @@
|
|||||||
group: "{{ user_name }}"
|
group: "{{ user_name }}"
|
||||||
tags: omp
|
tags: omp
|
||||||
|
|
||||||
- name: Install Fire Nerd Font
|
- name: Erstellung des Fonts Ordners.
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /usr/share/fonts/nerd-fonts
|
||||||
|
state: directory
|
||||||
|
mode: "0755"
|
||||||
|
become: true
|
||||||
|
tags: omp
|
||||||
|
|
||||||
|
- name: Entpacken der Fire Nerd Font.
|
||||||
ansible.builtin.unarchive:
|
ansible.builtin.unarchive:
|
||||||
src: /tmp/font/FiraCode.zip
|
src: /tmp/font/FiraCode.zip
|
||||||
dest: /usr/share/fonts/nerd-fonts
|
dest: /usr/share/fonts/nerd-fonts
|
||||||
|
remote_src: true
|
||||||
|
creates: /usr/share/fonts/nerd-fonts/FiraCode-Regular.ttf
|
||||||
|
tags: omp
|
||||||
|
|
||||||
- name: Erstellung des Konfiordners für Alacritty
|
- name: Installation des Fira Nerd Fonts.
|
||||||
|
ansible.builtin.shell:
|
||||||
|
cmd: fc-cache -fv
|
||||||
|
become: true
|
||||||
|
args:
|
||||||
|
creates: /var/log/taskrunner.done
|
||||||
|
tags: omp
|
||||||
|
|
||||||
|
- name: Erstellung des Konfigurationsorder für Alacritty.
|
||||||
|
tags: Folder
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /home/"{{ user_name }}"/.config/"{{ item }}"
|
path: /home/{{ user_name }}/{{ item }}
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ user_name }}"
|
owner: "{{ user_name }}"
|
||||||
group: "{{ user_name }}"
|
group: "{{ user_name }}"
|
||||||
mode: "{{ user_mode }}"
|
mode: "{{ user_mode }}"
|
||||||
loop:
|
loop:
|
||||||
- .config/alacritty
|
- .config/alacritty
|
||||||
- themes
|
|
||||||
|
- name: Transfer der Bashrc Datei.
|
||||||
|
ansible.builtin.copy:
|
||||||
|
dest: "{{ user_home_path }}"
|
||||||
|
src: /home/philip/.bashrc
|
||||||
|
owner: "{{ user_name }}"
|
||||||
|
group: "{{ user_name }}"
|
||||||
|
mode: u=rw,g=r,o=r
|
||||||
|
tags: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user