upt playbook

This commit is contained in:
jaydee 2023-08-03 04:19:03 +02:00
parent 43822fa47c
commit 0dce858b28

View File

@ -2,7 +2,7 @@
name: Install morefine name: Install morefine
become: yes become: yes
tasks: tasks:
- name: Install ldap packages - name: Install packages
become: true become: true
ansible.builtin.apt: ansible.builtin.apt:
name: name:
@ -19,21 +19,22 @@
- wine - wine
- kate - kate
- autofs - autofs
- name: Download Docker gpg key - ethtool
- name: Download gpg key for code
get_url: get_url:
url: https://packages.microsoft.com/keys/microsoft.asc url: https://packages.microsoft.com/keys/microsoft.asc
dest: /tmp/tempkey dest: /tmp/tempkey
- name: Get repo - name: Import key for code
become: true become: true
ansible.builtin.shell: >- ansible.builtin.shell: >-
gpg --dearmor < /tmp/tempkey > packages.microsoft.gpg gpg --dearmor < /tmp/tempkey > packages.microsoft.gpg
- name: Get repo - name: Install key for code
become: true become: true
ansible.builtin.shell: >- ansible.builtin.shell: >-
install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
- name: Get repo - name: Add repo for code
become: true become: true
ansible.builtin.shell: >- ansible.builtin.shell: >-
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 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
@ -58,23 +59,23 @@
deb: http://192.168.77.106:48000/install/VNC-Server-6.11.0-Linux-x64.deb deb: http://192.168.77.106:48000/install/VNC-Server-6.11.0-Linux-x64.deb
ignore_errors: true ignore_errors: true
- name: Download Docker gpg key - name: Download gpg key for spotify
get_url: get_url:
url: https://download.spotify.com/debian/pubkey_7A3A762FAFD4A51F.gpg url: https://download.spotify.com/debian/pubkey_7A3A762FAFD4A51F.gpg
dest: /tmp/tempkey dest: /tmp/tempkey
- name: Get repo - name: Install key for spotify
become: true become: true
ansible.builtin.shell: >- ansible.builtin.shell: >-
cat /tmp/tempkey |gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/spotify.gpg cat /tmp/tempkey |gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/spotify.gpg
- name: Get repo - name: Add repo for spotify
become: true become: true
ansible.builtin.shell: >- ansible.builtin.shell: >-
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
- name: Install ldap packages - name: Install spotify
become: true become: true
ansible.builtin.apt: ansible.builtin.apt:
name: spotify-client name: spotify-client
@ -88,7 +89,7 @@
ansible.builtin.apt: ansible.builtin.apt:
name: grub-customizer name: grub-customizer
update_cache: yes update_cache: yes
- name: Download Docker gpg key - name: Download gpg key for element
become: true become: true
get_url: get_url:
url: https://packages.element.io/debian/element-io-archive-keyring.gpg url: https://packages.element.io/debian/element-io-archive-keyring.gpg
@ -103,7 +104,7 @@
ansible.builtin.apt: ansible.builtin.apt:
name: element-desktop name: element-desktop
update_cache: yes update_cache: yes
- name: Creating a file with content - name: Creating a file with content wol service
ansible.builtin.copy: ansible.builtin.copy:
dest: "/etc/systemd/system/wol@.service" dest: "/etc/systemd/system/wol@.service"
content: | content: |