commit 66f60aa42e25c73dc9fb8f28db6cd64921c816e8 parent e7fcf4103d4853115066f8f340116bb625ae2cf2 Author: Vincent Demeester <vincent@sbr.pm> Date: Fri, 20 Nov 2020 18:18:05 +0100 tools/ansible: remove unused ansible configuration Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
27 files changed, 0 insertions(+), 572 deletions(-)
diff --git a/tools/ansible/playbook.yml b/tools/ansible/playbook.yml @@ -1,15 +0,0 @@ -# https://docs.ansible.com/ansible/latest/user_guide/playbooks_best_practices.html ---- -- hosts: localhost - roles: - - common - - desktop - - { role: laptop, when: ansible_form_factor == 'Notebook' } - - gcloud - - virtualization - - dev - - wireguard - -# ansible_hostname == 'hokkaido' -# ansible_product_version == 'ThinkPad X220' -# ansible_form_factor == 'Notebook' diff --git a/tools/ansible/roles/common/tasks/install-essentials.yml b/tools/ansible/roles/common/tasks/install-essentials.yml @@ -1,13 +0,0 @@ ---- -- name: Install essentials - become: yes - package: name={{item}} state=present - with_items: - - vim - - htop - - tmux - - zsh - - sshfs - - mosh - - krb5-auth-dialog - - krb5-workstation diff --git a/tools/ansible/roles/common/tasks/install-fedora-essentials.yml b/tools/ansible/roles/common/tasks/install-fedora-essentials.yml @@ -1,12 +0,0 @@ ---- -- name: Install essentials - become: yes - package: name={{item}} state=present - with_items: - - python3-psutil - - util-linux-user - - oathtool - - lm_sensors - - qrencode - - caca-utils - - ykpers diff --git a/tools/ansible/roles/common/tasks/main.yml b/tools/ansible/roles/common/tasks/main.yml @@ -1,4 +0,0 @@ ---- -- include: install-essentials.yml -- include: install-fedora-essentials.yml - when: ansible_distribution == 'Fedora'- \ No newline at end of file diff --git a/tools/ansible/roles/desktop/files/rpmfusion-free-updates-testing.repo b/tools/ansible/roles/desktop/files/rpmfusion-free-updates-testing.repo @@ -1,31 +0,0 @@ -[rpmfusion-free-updates-testing] -name=RPM Fusion for Fedora $releasever - Free - Test Updates -#baseurl=http://download1.rpmfusion.org/free/fedora/updates/testing/$releasever/$basearch/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=free-fedora-updates-testing-$releasever&arch=$basearch -enabled=0 -enabled_metadata=0 -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever - -[rpmfusion-free-updates-testing-debuginfo] -name=RPM Fusion for Fedora $releasever - Free - Test Updates Debug -#baseurl=http://download1.rpmfusion.org/free/fedora/updates/testing/$releasever/$basearch/debug/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=free-fedora-updates-testing-debug-$releasever&arch=$basearch -enabled=0 -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever - -[rpmfusion-free-updates-testing-source] -name=RPM Fusion for Fedora $releasever - Free - Test Updates Source -#baseurl=http://download1.rpmfusion.org/free/fedora/updates/testing/$releasever/SRPMS/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=free-fedora-updates-testing-source-$releasever&arch=$basearch -enabled=0 -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever - diff --git a/tools/ansible/roles/desktop/files/rpmfusion-free-updates.repo b/tools/ansible/roles/desktop/files/rpmfusion-free-updates.repo @@ -1,31 +0,0 @@ -[rpmfusion-free-updates] -name=RPM Fusion for Fedora $releasever - Free - Updates -#baseurl=http://download1.rpmfusion.org/free/fedora/updates/$releasever/$basearch/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=free-fedora-updates-released-$releasever&arch=$basearch -enabled=1 -enabled_metadata=1 -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever - -[rpmfusion-free-updates-debuginfo] -name=RPM Fusion for Fedora $releasever - Free - Updates Debug -#baseurl=http://download1.rpmfusion.org/free/fedora/updates/$releasever/$basearch/debug/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=free-fedora-updates-released-debug-$releasever&arch=$basearch -enabled=0 -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever - -[rpmfusion-free-updates-source] -name=RPM Fusion for Fedora $releasever - Free - Updates Source -#baseurl=http://download1.rpmfusion.org/free/fedora/updates/$releasever/SRPMS/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=free-fedora-updates-released-source-$releasever&arch=$basearch -enabled=0 -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever - diff --git a/tools/ansible/roles/desktop/files/rpmfusion-free.repo b/tools/ansible/roles/desktop/files/rpmfusion-free.repo @@ -1,33 +0,0 @@ -[rpmfusion-free] -name=RPM Fusion for Fedora $releasever - Free -#baseurl=http://download1.rpmfusion.org/free/fedora/releases/$releasever/Everything/$basearch/os/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=free-fedora-$releasever&arch=$basearch -enabled=1 -metadata_expire=14d -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever - -[rpmfusion-free-debuginfo] -name=RPM Fusion for Fedora $releasever - Free - Debug -#baseurl=http://download1.rpmfusion.org/free/fedora/releases/$releasever/Everything/$basearch/debug/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=free-fedora-debug-$releasever&arch=$basearch -enabled=0 -metadata_expire=7d -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever - -[rpmfusion-free-source] -name=RPM Fusion for Fedora $releasever - Free - Source -#baseurl=http://download1.rpmfusion.org/free/fedora/releases/$releasever/Everything/source/SRPMS/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=free-fedora-source-$releasever&arch=$basearch -enabled=0 -metadata_expire=7d -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever - diff --git a/tools/ansible/roles/desktop/files/rpmfusion-nonfree-nvidia-driver.repo b/tools/ansible/roles/desktop/files/rpmfusion-nonfree-nvidia-driver.repo @@ -1,30 +0,0 @@ -[rpmfusion-nonfree-nvidia-driver] -name=RPM Fusion for Fedora $releasever - Nonfree - NVIDIA Driver -#baseurl=http://download1.rpmfusion.org/nonfree/fedora/nvidia-driver/$releasever/$basearch/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-nvidia-driver-$releasever&arch=$basearch -enabled=0 -enabled_metadata=1 -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///usr/share/distribution-gpg-keys/rpmfusion/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever - -[rpmfusion-nonfree-nvidia-driver-debuginfo] -name=RPM Fusion for Fedora $releasever - Nonfree - NVIDIA Driver Debug -#baseurl=http://download1.rpmfusion.org/nonfree/fedora/nvidia-driver/$releasever/$basearch/debug/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-nvidia-driver-debug-$releasever&arch=$basearch -enabled=0 -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///usr/share/distribution-gpg-keys/rpmfusion/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever - -[rpmfusion-nonfree-nvidia-driver-source] -name=RPM Fusion for Fedora $releasever - Nonfree - NVIDIA Driver Source -#baseurl=http://download1.rpmfusion.org/nonfree/fedora/nvidia-driver/$releasever/SRPMS/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-nvidia-driver-source-$releasever&arch=$basearch -enabled=0 -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///usr/share/distribution-gpg-keys/rpmfusion/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever diff --git a/tools/ansible/roles/desktop/files/rpmfusion-nonfree-steam.repo b/tools/ansible/roles/desktop/files/rpmfusion-nonfree-steam.repo @@ -1,30 +0,0 @@ -[rpmfusion-nonfree-steam] -name=RPM Fusion for Fedora $releasever - Nonfree - Steam -#baseurl=http://download1.rpmfusion.org/nonfree/fedora/steam/$releasever/$basearch/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-steam-$releasever&arch=$basearch -enabled=0 -enabled_metadata=1 -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///usr/share/distribution-gpg-keys/rpmfusion/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever - -[rpmfusion-nonfree-steam-debuginfo] -name=RPM Fusion for Fedora $releasever - Nonfree - Steam Debug -#baseurl=http://download1.rpmfusion.org/nonfree/fedora/steam/$releasever/$basearch/debug/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-steam-debug-$releasever&arch=$basearch -enabled=0 -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///usr/share/distribution-gpg-keys/rpmfusion/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever - -[rpmfusion-nonfree-steam-source] -name=RPM Fusion for Fedora $releasever - Nonfree - Steam Source -#baseurl=http://download1.rpmfusion.org/nonfree/fedora/steam/$releasever/SRPMS/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-steam-source-$releasever&arch=$basearch -enabled=0 -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///usr/share/distribution-gpg-keys/rpmfusion/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever diff --git a/tools/ansible/roles/desktop/files/rpmfusion-nonfree-updates-testing.repo b/tools/ansible/roles/desktop/files/rpmfusion-nonfree-updates-testing.repo @@ -1,31 +0,0 @@ -[rpmfusion-nonfree-updates-testing] -name=RPM Fusion for Fedora $releasever - Nonfree - Test Updates -#baseurl=http://download1.rpmfusion.org/nonfree/fedora/updates/testing/$releasever/$basearch/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-updates-testing-$releasever&arch=$basearch -enabled=0 -enabled_metadata=0 -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever - -[rpmfusion-nonfree-updates-testing-debuginfo] -name=RPM Fusion for Fedora $releasever - Nonfree - Test Updates Debug -#baseurl=http://download1.rpmfusion.org/nonfree/fedora/updates/testing/$releasever/$basearch/debug/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-updates-testing-debug-$releasever&arch=$basearch -enabled=0 -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever - -[rpmfusion-nonfree-updates-testing-source] -name=RPM Fusion for Fedora $releasever - Nonfree - Test Updates Source -#baseurl=http://download1.rpmfusion.org/nonfree/fedora/updates/testing/$releasever/SRPMS/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-updates-testing-source-$releasever&arch=$basearch -enabled=0 -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever - diff --git a/tools/ansible/roles/desktop/files/rpmfusion-nonfree-updates.repo b/tools/ansible/roles/desktop/files/rpmfusion-nonfree-updates.repo @@ -1,31 +0,0 @@ -[rpmfusion-nonfree-updates] -name=RPM Fusion for Fedora $releasever - Nonfree - Updates -#baseurl=http://download1.rpmfusion.org/nonfree/fedora/updates/$releasever/$basearch/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-updates-released-$releasever&arch=$basearch -enabled=1 -enabled_metadata=1 -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever - -[rpmfusion-nonfree-updates-debuginfo] -name=RPM Fusion for Fedora $releasever - Nonfree - Updates Debug -#baseurl=http://download1.rpmfusion.org/nonfree/fedora/updates/$releasever/$basearch/debug/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-updates-released-debug-$releasever&arch=$basearch -enabled=0 -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever - -[rpmfusion-nonfree-updates-source] -name=RPM Fusion for Fedora $releasever - Nonfree - Updates Source -#baseurl=http://download1.rpmfusion.org/nonfree/fedora/updates/$releasever/SRPMS/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-updates-released-source-$releasever&arch=$basearch -enabled=0 -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever - diff --git a/tools/ansible/roles/desktop/files/rpmfusion-nonfree.repo b/tools/ansible/roles/desktop/files/rpmfusion-nonfree.repo @@ -1,34 +0,0 @@ -[rpmfusion-nonfree] -name=RPM Fusion for Fedora $releasever - Nonfree -#baseurl=http://download1.rpmfusion.org/nonfree/fedora/releases/$releasever/Everything/$basearch/os/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-$releasever&arch=$basearch -enabled=1 -enabled_metadata=1 -metadata_expire=14d -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever - -[rpmfusion-nonfree-debuginfo] -name=RPM Fusion for Fedora $releasever - Nonfree - Debug -#baseurl=http://download1.rpmfusion.org/nonfree/fedora/releases/$releasever/Everything/$basearch/debug/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-debug-$releasever&arch=$basearch -enabled=0 -metadata_expire=7d -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever - -[rpmfusion-nonfree-source] -name=RPM Fusion for Fedora $releasever - Nonfree - Source -#baseurl=http://download1.rpmfusion.org/nonfree/fedora/releases/$releasever/Everything/source/SRPMS/ -metalink=https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-source-$releasever&arch=$basearch -enabled=0 -metadata_expire=7d -type=rpm-md -gpgcheck=1 -repo_gpgcheck=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever - diff --git a/tools/ansible/roles/desktop/tasks/gnome.yml b/tools/ansible/roles/desktop/tasks/gnome.yml @@ -1,35 +0,0 @@ ---- -- name: Install gnome essentials - become: yes - package: name={{item}} state=present - with_items: - - seahorse - - seahorse-nautilus - - tilix - - tilix-nautilus - - nautilus-image-converter - - deja-dup - - deja-dup-nautilus - - gnome-tweaks - - gnome-shell-extension-pomodoro - - snapd - - xsel - - pavucontrol -- name: Install dconf-editor - become: yes - package: name=dconf-editor state=present -- name: Enable Night Light - dconf: - key: "/org/gnome/settings-daemon/plugins/color/night-light-enabled" - value: "true" - state: present -- name: Enable Night Light - dconf: - key: "/org/gnome/settings-daemon/plugins/color/night-light-schedule-automatic" - value: "true" - state: present -- name: Enable Night Light - dconf: - key: "/org/gnome/settings-daemon/plugins/color/night-light-temperature" - value: "5000" - state: present diff --git a/tools/ansible/roles/desktop/tasks/main.yml b/tools/ansible/roles/desktop/tasks/main.yml @@ -1,5 +0,0 @@ ---- -- include: gnome.yml - when: ansible_distribution == 'Fedora' -- include: media.yml -- include: syncthing.yml- \ No newline at end of file diff --git a/tools/ansible/roles/desktop/tasks/media.yml b/tools/ansible/roles/desktop/tasks/media.yml @@ -1,24 +0,0 @@ ---- -# https://rpmfusion.org/Configuration (fix this) -- name: add rpmfusion repos - copy: - src: "{{ item }}" - dest: "/etc/yum.repos.d/{{ item }}" - owner: root - group: root - mode: 0644 - with_items: - - rpmfusion-free.repo - - rpmfusion-free-updates.repo - - rpmfusion-free-updates-testing.repo - - rpmfusion-nonfree-nvidia-driver.repo - - rpmfusion-nonfree.repo - - rpmfusion-nonfree-steam.repo - - rpmfusion-nonfree-updates.repo - - rpmfusion-nonfree-updates-testing.repo - when: ansible_distribution == 'Fedora' -- name: install media - become: yes - package: name={{item}} state=present - with_items: - - mpv diff --git a/tools/ansible/roles/desktop/tasks/syncthing.yml b/tools/ansible/roles/desktop/tasks/syncthing.yml @@ -1,11 +0,0 @@ ---- -- name: Install syncthing - become: yes - package: name={{item}} state=present - with_items: - - syncthing -- name: Enable and ensure Syncthing is started - systemd: - name: syncthing@vincent - enabled: yes - state: started- \ No newline at end of file diff --git a/tools/ansible/roles/dev/files/vscode.repo b/tools/ansible/roles/dev/files/vscode.repo @@ -1,6 +0,0 @@ -[code] -name=Visual Studio Code -baseurl=https://packages.microsoft.com/yumrepos/vscode -enabled=1 -gpgcheck=1 -gpgkey=https://packages.microsoft.com/keys/microsoft.asc diff --git a/tools/ansible/roles/dev/tasks/main.yml b/tools/ansible/roles/dev/tasks/main.yml @@ -1,38 +0,0 @@ ---- -- name: add vscode rpm key - rpm_key: - state: present - key: https://packages.microsoft.com/keys/microsoft.asc - when: ansible_distribution == 'Fedora' -- name: add rpmfusion repos - copy: - src: "{{ item }}" - dest: "/etc/yum.repos.d/{{ item }}" - owner: root - group: root - mode: 0644 - with_items: - - vscode.repo - when: ansible_distribution == 'Fedora' -- name: install vscode - become: yes - package: name={{item}} state=present - with_items: - - code -- name: install go - become: yes - package: name={{item}} state=present - with_items: - - golang - - golang-docs - - golang-googlecode-tools-goimports -- name: install toolbox - become: yes - package: name={{item}} state=present - with_items: - - toolbox - - podman - - buildah - - skopeo - - origin-clients -# make, automake diff --git a/tools/ansible/roles/gcloud/files/google-cloud-sdk.repo b/tools/ansible/roles/gcloud/files/google-cloud-sdk.repo @@ -1,8 +0,0 @@ -[google-cloud-sdk] -name=Google Cloud SDK -baseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64 -enabled=1 -gpgcheck=1 -repo_gpgcheck=1 -gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg - https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg diff --git a/tools/ansible/roles/gcloud/tasks/main.yml b/tools/ansible/roles/gcloud/tasks/main.yml @@ -1,11 +0,0 @@ ---- -- name: add google-cloud-sdk repo - copy: - src: "google-cloud-sdk.repo" - dest: "/etc/yum.repos.d/google-cloud-sdk.repo" - owner: root - group: root - mode: 0644 -- name: install google-cloud-sdk - become: yes - package: name=google-cloud-sdk state=present- \ No newline at end of file diff --git a/tools/ansible/roles/laptop/tasks/common.yml b/tools/ansible/roles/laptop/tasks/common.yml @@ -1,12 +0,0 @@ ---- -- name: Common laptop utilities - become: yes - package: name={{item}} state=present - with_items: - - acpi - - powertop -- name: enable powertop - systemd: - name: powertop.service - state: started - enabled: yes- \ No newline at end of file diff --git a/tools/ansible/roles/laptop/tasks/main.yml b/tools/ansible/roles/laptop/tasks/main.yml @@ -1,7 +0,0 @@ ---- -- include: common.yml -- include: thinkpad.yml - when: ansible_product_version == 'ThinkPad X220' -#- name: just force systemd to reread configs (2.4 and above) -# systemd: -# daemon_reload: yes- \ No newline at end of file diff --git a/tools/ansible/roles/laptop/tasks/thinkpad.yml b/tools/ansible/roles/laptop/tasks/thinkpad.yml @@ -1,17 +0,0 @@ ---- -- name: ThinkPad X220 laptop utilities - become: yes - package: name={{item}} state=present - with_items: - - tlp - - tlp-rdw -- name: enable tlp - systemd: - name: tlp.service - state: started - enabled: yes -- name: enable tlp-sleep - systemd: - name: tlp.service - state: started - enabled: yes- \ No newline at end of file diff --git a/tools/ansible/roles/virtualization/tasks/main.yml b/tools/ansible/roles/virtualization/tasks/main.yml @@ -1,11 +0,0 @@ ---- -- name: install the 'Virtualization' package group - dnf: - name: '@Virtualization' - state: present -- name: Install virtualization essentials - become: yes - package: name={{item}} state=present - with_items: - - guestfs-browser - - libguestfs-tools diff --git a/tools/ansible/roles/wireguard/tasks/main.yml b/tools/ansible/roles/wireguard/tasks/main.yml @@ -1,74 +0,0 @@ ---- -- name: install wireguard and tools - become: yes - package: name={{item}} state=present - with_items: - - wireguard -# - name: Enable packet forwording for IPv4 -# sysctl: -# name: net.ipv4.ip_forward -# value: 1 -# sysctl_set: yes -# state: present -# reload: yes -# - name: Create WireGuard configurations directory -# file: -# dest: /etc/wireguard -# state: directory -# - name: Generate WireGuard private and public keys -# shell: umask 077 && wg genkey | tee /etc/wireguard/privatekey | wg pubkey > /etc/wireguard/publickey -# - name: Register WireGuard private key as a variable -# slurp: -# src: /etc/wireguard/privatekey -# register: wg_privatekey -# - name: Generate WireGuard configuration file -# template: -# src: wireguard.conf.j2 -# dest: /etc/wireguard/wg0.conf -# owner: root -# group: root -# mode: 0600 -# force: no -# - name: Add WireGuard as a service to FirewallD -# template: -# src: wireguard.xml.j2 -# dest: /etc/firewalld/services/wireguard.xml -# owner: root -# group: root -# mode: 0600 -# force: no -# - name: Allow WireGuard service for FirewallD public zone -# firewalld: -# zone: public -# service: wireguard -# state: enabled -# permanent: yes -# immediate: yes -# - name: Add WireGuard interface to FirewallD public zone -# firewalld: -# zone: public -# interface: wg0 -# state: enabled -# permanent: yes -# immediate: yes -# - name: Enable Masquerading -# firewalld: -# zone: public -# masquerade: "yes" -# state: enabled -# permanent: yes -# immediate: yes -# - name: Enable WireGuard kernel module -# modprobe: -# name: wireguard -# state: present -# register: wireguard_module_enabled -# until: wireguard_module_enabled is succeeded -# retries: 10 -# delay: 10 -# failed_when: wireguard_module_enabled is failure -# - name: Start and enable WireGuard service -# service: -# name: wg-quick@wg0 -# state: started -# enabled: yes- \ No newline at end of file diff --git a/tools/ansible/roles/wireguard/templates/wireguard.conf.j2 b/tools/ansible/roles/wireguard/templates/wireguard.conf.j2 @@ -1,4 +0,0 @@ -[Interface] -Address = {{ wireguard_interface_ip }} -ListenPort = {{ wireguard_port }} -PrivateKey = {{ wg_privatekey['content'] | b64decode }} diff --git a/tools/ansible/roles/wireguard/templates/wireguard.xml.j2 b/tools/ansible/roles/wireguard/templates/wireguard.xml.j2 @@ -1,5 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<service> - <short>WireGuard</short> - <port protocol="udp" port="{{ wireguard_port }}"/> -</service> - \ No newline at end of file