VScode instalace na Debianu
This commit is contained in:
17
playbook.yml
17
playbook.yml
@@ -1,15 +1,14 @@
|
||||
---
|
||||
- name: And now all running
|
||||
hosts: localhost
|
||||
hosts: mintotaur
|
||||
vars:
|
||||
user: warezjoe
|
||||
host: desktop # desktop rpi ntb
|
||||
host: ntb # desktop rpi ntb
|
||||
roles:
|
||||
# run with sudo alone
|
||||
- role: linux_config_init
|
||||
# - role: import_ssh_key # without sudo
|
||||
# - role: tools_for_command_line
|
||||
# - role: service_start
|
||||
# - role: gui_app_init
|
||||
# - role: ansible-role-docker
|
||||
# docker_users: "{{ user }}"
|
||||
- role: import_ssh_key # without sudo
|
||||
- role: tools_for_command_line
|
||||
- role: service_start
|
||||
- role: gui_app_init
|
||||
# - role: ansible-role-docker
|
||||
# docker_users: "{{ user }}"
|
||||
|
||||
@@ -6,4 +6,3 @@
|
||||
- fedora-workstation-repositories
|
||||
state: present
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
|
||||
@@ -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"
|
||||
@@ -12,8 +12,3 @@
|
||||
- terminator
|
||||
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:
|
||||
name:
|
||||
- wine
|
||||
state: present
|
||||
state: present
|
||||
|
||||
@@ -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"
|
||||
|
||||
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
|
||||
- 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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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: '*'
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: replace line
|
||||
- name: Replace line
|
||||
become: true
|
||||
lineinfile:
|
||||
path: /etc/ssh/sshd_config
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
- mc
|
||||
- nano
|
||||
- net-tools
|
||||
- git
|
||||
- ncdu
|
||||
- nmap
|
||||
- telnet
|
||||
|
||||
Reference in New Issue
Block a user