VScode instalace na Debianu
This commit is contained in:
17
playbook.yml
17
playbook.yml
@@ -1,15 +1,14 @@
|
|||||||
---
|
---
|
||||||
- name: And now all running
|
- name: And now all running
|
||||||
hosts: localhost
|
hosts: mintotaur
|
||||||
vars:
|
vars:
|
||||||
user: warezjoe
|
user: warezjoe
|
||||||
host: desktop # desktop rpi ntb
|
host: ntb # desktop rpi ntb
|
||||||
roles:
|
roles:
|
||||||
# run with sudo alone
|
|
||||||
- role: linux_config_init
|
- role: linux_config_init
|
||||||
# - role: import_ssh_key # without sudo
|
- role: import_ssh_key # without sudo
|
||||||
# - role: tools_for_command_line
|
- role: tools_for_command_line
|
||||||
# - role: service_start
|
- role: service_start
|
||||||
# - role: gui_app_init
|
- role: gui_app_init
|
||||||
# - role: ansible-role-docker
|
# - role: ansible-role-docker
|
||||||
# docker_users: "{{ user }}"
|
# docker_users: "{{ user }}"
|
||||||
|
|||||||
@@ -6,4 +6,3 @@
|
|||||||
- fedora-workstation-repositories
|
- fedora-workstation-repositories
|
||||||
state: present
|
state: present
|
||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: Add repository for vscode
|
- name: Add repository for vscode for "RedHat"
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.yum_repository:
|
ansible.builtin.yum_repository:
|
||||||
name: vscode
|
name: vscode
|
||||||
@@ -7,3 +7,16 @@
|
|||||||
baseurl: https://packages.microsoft.com/yumrepos/vscode
|
baseurl: https://packages.microsoft.com/yumrepos/vscode
|
||||||
gpgkey: https://packages.microsoft.com/keys/microsoft.asc
|
gpgkey: https://packages.microsoft.com/keys/microsoft.asc
|
||||||
when: ansible_os_family == "RedHat"
|
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"
|
||||||
@@ -12,8 +12,3 @@
|
|||||||
- terminator
|
- terminator
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Setting Terminator
|
|
||||||
ansible.builtin.include_tasks: "{{ item }}"
|
|
||||||
loop:
|
|
||||||
- font_set.yml
|
|
||||||
- terminator_cofig_copy.yml
|
|
||||||
|
|||||||
@@ -12,4 +12,4 @@
|
|||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name:
|
name:
|
||||||
- wine
|
- wine
|
||||||
state: present
|
state: present
|
||||||
|
|||||||
@@ -5,9 +5,10 @@
|
|||||||
register: prefedora_ver
|
register: prefedora_ver
|
||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
- name: set fact
|
- name: Set fact
|
||||||
set_fact:
|
set_fact:
|
||||||
fedora_ver: "{{ prefedora_ver.stdout }}"
|
fedora_ver: "{{ prefedora_ver.stdout }}"
|
||||||
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
- name: Add repo Discord repo for Fedora
|
- name: Add repo Discord repo for Fedora
|
||||||
become: true
|
become: true
|
||||||
@@ -20,4 +21,4 @@
|
|||||||
become: true
|
become: true
|
||||||
ansible.builtin.dnf:
|
ansible.builtin.dnf:
|
||||||
name: discord
|
name: discord
|
||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
|
|||||||
7
roles/linux_config_init/tasks/git.yml
Normal file
7
roles/linux_config_init/tasks/git.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
- name: Get git
|
||||||
|
become: true
|
||||||
|
ansible.builtin.package:
|
||||||
|
name:
|
||||||
|
- git
|
||||||
|
state: present
|
||||||
@@ -1,11 +1,12 @@
|
|||||||
---
|
---
|
||||||
# tasks file for linux_config_init
|
# tasks file for linux_config_init
|
||||||
- name: System settings in /etc
|
- name: System settings
|
||||||
ansible.builtin.include_tasks: "{{ item }}"
|
ansible.builtin.include_tasks: "{{ item }}"
|
||||||
loop:
|
loop:
|
||||||
# - static_dns.yml
|
|
||||||
- sudoer_no_passwd.yml
|
- sudoer_no_passwd.yml
|
||||||
- hostname_set.yml
|
- hostname_set.yml
|
||||||
|
- git.yml
|
||||||
|
- script_import.yml
|
||||||
|
|
||||||
- name: Set Pernament IP
|
- name: Set Pernament IP
|
||||||
ansible.builtin.include_tasks: set_perma_ip.yml
|
ansible.builtin.include_tasks: set_perma_ip.yml
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
---
|
---
|
||||||
- name: Clone a github repository
|
- name: Clone a github repository
|
||||||
git:
|
git:
|
||||||
repo: ssh://git@gitea.matous.vondrejka.cz:222/Warezjoe/.bin.git
|
repo: https://gitea.matous.vondrejka.cz/Warezjoe/.bin.git
|
||||||
dest: ~/
|
dest: ~/.bin/
|
||||||
clone: yes
|
clone: true
|
||||||
update: yes
|
update: true
|
||||||
|
|
||||||
|
- name: Run Aliaser
|
||||||
|
ansible.builtin.blockinfile:
|
||||||
|
path: ~/.bashrc
|
||||||
|
block: |
|
||||||
|
source ~/.bin/Aliaser
|
||||||
|
|
||||||
- name: Add scripts to PATH
|
|
||||||
|
|||||||
@@ -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
|
- name: Delete all old ethernet connections for desktop exept below configured
|
||||||
community.general.nmcli:
|
community.general.nmcli:
|
||||||
conn_name: '*'
|
conn_name: '*'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
# tasks file for service_start
|
# tasks file for service_start
|
||||||
- name: SSH server
|
- name: SSH server
|
||||||
ansible.builtin.include_tasks: ssh_server.yml
|
ansible.builtin.include_tasks: ssh_server.yml
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: replace line
|
- name: Replace line
|
||||||
become: true
|
become: true
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/ssh/sshd_config
|
path: /etc/ssh/sshd_config
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
- mc
|
- mc
|
||||||
- nano
|
- nano
|
||||||
- net-tools
|
- net-tools
|
||||||
- git
|
|
||||||
- ncdu
|
- ncdu
|
||||||
- nmap
|
- nmap
|
||||||
- telnet
|
- telnet
|
||||||
|
|||||||
Reference in New Issue
Block a user