VScode instalace na Debianu

This commit is contained in:
git
2023-06-21 14:03:30 +02:00
parent 9bb5484799
commit 71340693f9
13 changed files with 48 additions and 34 deletions

View File

@@ -6,4 +6,3 @@
- fedora-workstation-repositories
state: present
when: ansible_os_family == "RedHat"

View File

@@ -1,5 +1,5 @@
---
- name: Add repository for vscode
- name: Add repository for vscode for "RedHat"
become: true
ansible.builtin.yum_repository:
name: vscode
@@ -7,3 +7,16 @@
baseurl: https://packages.microsoft.com/yumrepos/vscode
gpgkey: https://packages.microsoft.com/keys/microsoft.asc
when: ansible_os_family == "RedHat"
- name: Add gpg key for vscode for "Debian"
become: true
ansible.builtin.apt_key:
url: https://packages.microsoft.com/keys/microsoft.asc
state: present
- name: Add repository for vscode for "Debian"
become: true
ansible.builtin.apt_repository:
repo: deb https://packages.microsoft.com/repos/code stable main
#gpgkey: https://packages.microsoft.com/keys/microsoft.asc
when: ansible_os_family == "Debian"

View File

@@ -12,8 +12,3 @@
- terminator
state: present
- name: Setting Terminator
ansible.builtin.include_tasks: "{{ item }}"
loop:
- font_set.yml
- terminator_cofig_copy.yml

View File

@@ -12,4 +12,4 @@
ansible.builtin.package:
name:
- wine
state: present
state: present

View File

@@ -5,9 +5,10 @@
register: prefedora_ver
when: ansible_os_family == "RedHat"
- name: set fact
- name: Set fact
set_fact:
fedora_ver: "{{ prefedora_ver.stdout }}"
when: ansible_os_family == "RedHat"
- name: Add repo Discord repo for Fedora
become: true
@@ -20,4 +21,4 @@
become: true
ansible.builtin.dnf:
name: discord
when: ansible_os_family == "RedHat"
when: ansible_os_family == "RedHat"

View File

@@ -0,0 +1,7 @@
---
- name: Get git
become: true
ansible.builtin.package:
name:
- git
state: present

View File

@@ -1,11 +1,12 @@
---
# tasks file for linux_config_init
- name: System settings in /etc
- name: System settings
ansible.builtin.include_tasks: "{{ item }}"
loop:
# - static_dns.yml
- sudoer_no_passwd.yml
- hostname_set.yml
- git.yml
- script_import.yml
- name: Set Pernament IP
ansible.builtin.include_tasks: set_perma_ip.yml

View File

@@ -1,9 +1,14 @@
---
- name: Clone a github repository
git:
repo: ssh://git@gitea.matous.vondrejka.cz:222/Warezjoe/.bin.git
dest: ~/
clone: yes
update: yes
repo: https://gitea.matous.vondrejka.cz/Warezjoe/.bin.git
dest: ~/.bin/
clone: true
update: true
- name: Run Aliaser
ansible.builtin.blockinfile:
path: ~/.bashrc
block: |
source ~/.bin/Aliaser
- name: Add scripts to PATH

View File

@@ -1,9 +1,4 @@
---
- name: Fedora version fetch
shell: |
nmcli c | grep ethernet | awk -F '\\s\\s' '{print $1}'
register: prefedora_ver
- name: Delete all old ethernet connections for desktop exept below configured
community.general.nmcli:
conn_name: '*'

View File

@@ -1,4 +1,4 @@
---
# tasks file for service_start
- name: SSH server
ansible.builtin.include_tasks: ssh_server.yml
ansible.builtin.include_tasks: ssh_server.yml

View File

@@ -1,5 +1,5 @@
---
- name: replace line
- name: Replace line
become: true
lineinfile:
path: /etc/ssh/sshd_config

View File

@@ -7,7 +7,6 @@
- mc
- nano
- net-tools
- git
- ncdu
- nmap
- telnet