Well, first push
This commit is contained in:
9
roles/gui_app_init/tasks/add_steam_repo.yml
Normal file
9
roles/gui_app_init/tasks/add_steam_repo.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: Add repository for steam
|
||||
become: true
|
||||
ansible.builtin.dnf:
|
||||
name:
|
||||
- fedora-workstation-repositories
|
||||
state: present
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
9
roles/gui_app_init/tasks/add_vscode_repo.yml
Normal file
9
roles/gui_app_init/tasks/add_vscode_repo.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: Add repository for vscode
|
||||
become: true
|
||||
ansible.builtin.yum_repository:
|
||||
name: vscode
|
||||
description: Adding repo for vscode
|
||||
baseurl: https://packages.microsoft.com/yumrepos/vscode
|
||||
gpgkey: https://packages.microsoft.com/keys/microsoft.asc
|
||||
when: ansible_os_family == "RedHat"
|
||||
19
roles/gui_app_init/tasks/administration.yml
Normal file
19
roles/gui_app_init/tasks/administration.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
|
||||
- name: Add repos
|
||||
ansible.builtin.include_tasks: add_vscode_repo.yml
|
||||
|
||||
- name: Administration tools install
|
||||
become: true
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- libreoffice-base
|
||||
- code
|
||||
- terminator
|
||||
state: present
|
||||
|
||||
- name: Setting Terminator
|
||||
ansible.builtin.include_tasks: "{{ item }}"
|
||||
loop:
|
||||
- font_set.yml
|
||||
- terminator_cofig_copy.yml
|
||||
16
roles/gui_app_init/tasks/font_set.yml
Normal file
16
roles/gui_app_init/tasks/font_set.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
- name: ensure fonts directory
|
||||
file:
|
||||
path: "/home/{{ user }}/.local/share/fonts"
|
||||
state: directory
|
||||
|
||||
- name: Hack exists
|
||||
shell: "ls /home/{{ user }}/.local/share/fonts/Hack*Nerd*Font*Complete*"
|
||||
register: hack_exists
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Download Hack
|
||||
when: hack_exists is failed
|
||||
ansible.builtin.unarchive:
|
||||
src: https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/Hack.zip
|
||||
dest: "/home/{{ user }}/.local/share/fonts"
|
||||
remote_src: yes
|
||||
15
roles/gui_app_init/tasks/games.yml
Normal file
15
roles/gui_app_init/tasks/games.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
- name: Steam and Discord
|
||||
ansible.builtin.include_tasks: "{{ item }}"
|
||||
loop:
|
||||
- add_steam_repo.yml
|
||||
- install_steam.yml
|
||||
- install_discord.yml
|
||||
|
||||
|
||||
- name: Stuff for run games
|
||||
become: true
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- wine
|
||||
state: present
|
||||
23
roles/gui_app_init/tasks/install_discord.yml
Normal file
23
roles/gui_app_init/tasks/install_discord.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
- name: Fedora version fetch
|
||||
shell: |
|
||||
rpm -E %fedora
|
||||
register: prefedora_ver
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
- name: set fact
|
||||
set_fact:
|
||||
fedora_ver: "{{ prefedora_ver.stdout }}"
|
||||
|
||||
- name: Add repo Discord repo for Fedora
|
||||
become: true
|
||||
ansible.builtin.dnf:
|
||||
name: 'https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ fedora_ver }}.noarch.rpm'
|
||||
state: present
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
- name: Discord install fedora
|
||||
become: true
|
||||
ansible.builtin.dnf:
|
||||
name: discord
|
||||
when: ansible_os_family == "RedHat"
|
||||
7
roles/gui_app_init/tasks/install_steam.yml
Normal file
7
roles/gui_app_init/tasks/install_steam.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
- name: Steam install fedora
|
||||
become: true
|
||||
ansible.builtin.dnf:
|
||||
name: steam
|
||||
enablerepo: rpmfusion-nonfree-steam
|
||||
when: ansible_os_family == "RedHat"
|
||||
7
roles/gui_app_init/tasks/main.yml
Normal file
7
roles/gui_app_init/tasks/main.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
# tasks file for gui_app_init
|
||||
- name: Administration
|
||||
ansible.builtin.include_tasks: "{{ item }}"
|
||||
loop:
|
||||
- administration.yml
|
||||
- games.yml
|
||||
8
roles/gui_app_init/tasks/terminator_cofig_copy.yml
Normal file
8
roles/gui_app_init/tasks/terminator_cofig_copy.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: copy Terminator config
|
||||
ansible.builtin.template:
|
||||
src: config
|
||||
dest: /home/{{ user }}/.local/terminator
|
||||
owner: "{{ user }}"
|
||||
group: "{{ user }}"
|
||||
mode: '0644'
|
||||
Reference in New Issue
Block a user