2023-07-31 13:13:14 +02:00
|
|
|
- hosts: morefine
|
2023-07-31 09:25:55 +00:00
|
|
|
name: Install morefine
|
2023-07-31 10:16:35 +00:00
|
|
|
become: yes
|
2023-07-31 09:25:55 +00:00
|
|
|
tasks:
|
2023-08-03 04:19:03 +02:00
|
|
|
- name: Install packages
|
2023-07-31 13:39:27 +02:00
|
|
|
become: true
|
2023-07-31 09:25:55 +00:00
|
|
|
ansible.builtin.apt:
|
|
|
|
name:
|
|
|
|
- curl
|
2023-07-31 10:05:29 +00:00
|
|
|
- yakuake
|
2023-07-31 10:41:24 +00:00
|
|
|
- software-properties-common
|
|
|
|
- apt-transport-https
|
|
|
|
- wget
|
|
|
|
- gpg
|
2023-07-31 10:51:05 +00:00
|
|
|
- autokey-gtk
|
2023-07-31 10:56:13 +00:00
|
|
|
- git
|
2023-07-31 13:00:01 +02:00
|
|
|
- barrier
|
2023-07-31 13:04:05 +02:00
|
|
|
- krusader
|
2023-07-31 13:07:52 +02:00
|
|
|
- wine
|
2023-07-31 14:29:04 +02:00
|
|
|
- kate
|
2023-07-31 17:21:24 +02:00
|
|
|
- autofs
|
2023-08-03 04:19:03 +02:00
|
|
|
- ethtool
|
2023-08-03 13:14:52 +02:00
|
|
|
- python3-pip
|
2023-08-22 16:16:00 +02:00
|
|
|
- telegram-desktop
|
2023-08-03 04:19:03 +02:00
|
|
|
- name: Download gpg key for code
|
2023-08-03 04:09:32 +02:00
|
|
|
get_url:
|
|
|
|
url: https://packages.microsoft.com/keys/microsoft.asc
|
|
|
|
dest: /tmp/tempkey
|
2023-08-03 04:19:03 +02:00
|
|
|
- name: Import key for code
|
2023-07-31 13:41:58 +02:00
|
|
|
become: true
|
2023-07-31 10:43:15 +00:00
|
|
|
ansible.builtin.shell: >-
|
2023-08-03 04:09:32 +02:00
|
|
|
gpg --dearmor < /tmp/tempkey > packages.microsoft.gpg
|
|
|
|
|
2023-08-03 04:19:03 +02:00
|
|
|
- name: Install key for code
|
2023-07-31 13:41:58 +02:00
|
|
|
become: true
|
2023-07-31 10:46:34 +00:00
|
|
|
ansible.builtin.shell: >-
|
|
|
|
install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
|
2023-07-31 13:41:58 +02:00
|
|
|
|
2023-08-03 04:19:03 +02:00
|
|
|
- name: Add repo for code
|
2023-07-31 13:41:58 +02:00
|
|
|
become: true
|
2023-07-31 10:46:34 +00:00
|
|
|
ansible.builtin.shell: >-
|
2023-07-31 10:49:13 +00:00
|
|
|
echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list
|
2023-07-31 13:41:58 +02:00
|
|
|
|
2023-07-31 10:46:34 +00:00
|
|
|
- name: Install code
|
2023-07-31 13:41:58 +02:00
|
|
|
become: true
|
2023-07-31 10:46:34 +00:00
|
|
|
ansible.builtin.apt:
|
|
|
|
name:
|
|
|
|
- code
|
2023-07-31 13:12:25 +02:00
|
|
|
- name: Install viber
|
2023-07-31 13:41:58 +02:00
|
|
|
become: true
|
2023-07-31 13:12:25 +02:00
|
|
|
ansible.builtin.apt:
|
2023-07-31 14:23:54 +02:00
|
|
|
deb: https://download.cdn.viber.com/cdn/desktop/Linux/viber.deb
|
|
|
|
- name: Install VNC Viewer
|
|
|
|
become: true
|
|
|
|
ansible.builtin.apt:
|
|
|
|
deb: https://downloads.realvnc.com/download/file/viewer.files/VNC-Viewer-7.5.1-Linux-x64.deb
|
|
|
|
|
|
|
|
- name: Install VNC Server
|
|
|
|
become: true
|
|
|
|
ansible.builtin.apt:
|
2023-08-02 07:58:46 +02:00
|
|
|
deb: http://192.168.77.106:48000/install/VNC-Server-6.11.0-Linux-x64.deb
|
2023-08-02 07:29:35 +02:00
|
|
|
ignore_errors: true
|
2023-08-03 04:11:24 +02:00
|
|
|
|
2023-08-03 04:19:03 +02:00
|
|
|
- name: Download gpg key for spotify
|
2023-08-03 04:11:24 +02:00
|
|
|
get_url:
|
|
|
|
url: https://download.spotify.com/debian/pubkey_7A3A762FAFD4A51F.gpg
|
|
|
|
dest: /tmp/tempkey
|
|
|
|
|
|
|
|
|
2023-08-03 04:19:03 +02:00
|
|
|
- name: Install key for spotify
|
2023-08-03 04:09:32 +02:00
|
|
|
become: true
|
|
|
|
ansible.builtin.shell: >-
|
2023-08-03 04:11:24 +02:00
|
|
|
cat /tmp/tempkey |gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/spotify.gpg
|
2023-08-03 04:09:32 +02:00
|
|
|
|
|
|
|
|
2023-08-03 04:19:03 +02:00
|
|
|
- name: Add repo for spotify
|
2023-08-02 07:26:40 +02:00
|
|
|
become: true
|
|
|
|
ansible.builtin.shell: >-
|
|
|
|
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
|
2023-08-03 04:19:03 +02:00
|
|
|
- name: Install spotify
|
2023-08-02 07:26:40 +02:00
|
|
|
become: true
|
|
|
|
ansible.builtin.apt:
|
|
|
|
name: spotify-client
|
2023-08-02 19:09:11 +02:00
|
|
|
update_cache: yes
|
|
|
|
- name: Get repo
|
|
|
|
become: true
|
|
|
|
ansible.builtin.shell: >-
|
2023-08-02 23:36:54 +02:00
|
|
|
add-apt-repository ppa:danielrichter2007/grub-customizer -y
|
2023-08-02 19:09:11 +02:00
|
|
|
- name: Install grub-customizer
|
|
|
|
become: true
|
|
|
|
ansible.builtin.apt:
|
|
|
|
name: grub-customizer
|
|
|
|
update_cache: yes
|
2023-08-03 04:19:03 +02:00
|
|
|
- name: Download gpg key for element
|
2023-08-02 19:09:11 +02:00
|
|
|
become: true
|
2023-08-03 04:14:36 +02:00
|
|
|
get_url:
|
|
|
|
url: https://packages.element.io/debian/element-io-archive-keyring.gpg
|
|
|
|
dest: /usr/share/keyrings/element-io-archive-keyring.gpg
|
|
|
|
|
2023-08-02 19:09:11 +02:00
|
|
|
- name: Get repo element-desktop
|
|
|
|
become: true
|
|
|
|
ansible.builtin.shell: >-
|
|
|
|
echo "deb [signed-by=/usr/share/keyrings/element-io-archive-keyring.gpg] https://packages.element.io/debian/ default main" | sudo tee /etc/apt/sources.list.d/element-io.list
|
|
|
|
- name: Install element-desktop
|
|
|
|
become: true
|
|
|
|
ansible.builtin.apt:
|
|
|
|
name: element-desktop
|
|
|
|
update_cache: yes
|
2023-08-03 04:19:03 +02:00
|
|
|
- name: Creating a file with content wol service
|
2023-08-03 03:52:51 +02:00
|
|
|
ansible.builtin.copy:
|
|
|
|
dest: "/etc/systemd/system/wol@.service"
|
|
|
|
content: |
|
|
|
|
[Unit]
|
|
|
|
Description=Wake-on-LAN for %i
|
|
|
|
Requires=network.target
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecStart=/usr/sbin/ethtool -s %i wol g
|
|
|
|
Type=oneshot
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
- name: Just force systemd to reread configs (2.4 and above)
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
daemon_reload: true
|
|
|
|
- name: Enable wol@eno1
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
name: wol@eno1
|
|
|
|
state: started
|
|
|
|
enabled: true
|