From 160b02a45e1ccf27806870f848e14c21f19a69f1 Mon Sep 17 00:00:00 2001 From: Saibotk Date: Mon, 20 Jan 2025 00:22:19 +0100 Subject: [PATCH] remove!(moby_engine): unused --- roles/moby_engine/README.md | 26 ------------ roles/moby_engine/defaults/main.yml | 23 ----------- roles/moby_engine/handlers/main.yml | 38 ------------------ roles/moby_engine/meta/main.yml | 15 ------- roles/moby_engine/tasks/Fedora-32.yml | 57 --------------------------- roles/moby_engine/tasks/main.yml | 27 ------------- 6 files changed, 186 deletions(-) delete mode 100644 roles/moby_engine/README.md delete mode 100644 roles/moby_engine/defaults/main.yml delete mode 100644 roles/moby_engine/handlers/main.yml delete mode 100644 roles/moby_engine/meta/main.yml delete mode 100644 roles/moby_engine/tasks/Fedora-32.yml delete mode 100644 roles/moby_engine/tasks/main.yml diff --git a/roles/moby_engine/README.md b/roles/moby_engine/README.md deleted file mode 100644 index cbf6762..0000000 --- a/roles/moby_engine/README.md +++ /dev/null @@ -1,26 +0,0 @@ -moby-engine -========= - -This will install the `moby-engine` package. - -Requirements ------------- - -Currently only Fedora-32 is supported. - -Role Variables --------------- - -**Please look at the [defaults/main.yml](defaults/main.yml) for all available variables and their description.** - -**Note: Lines that are commented out via `#` are usually still valid/used variables, but they are not defined by default, so they might enable a feature, when uncommenting/defining them!** - -Dependencies ------------- - -None - -License -------- - -GPL-3.0-only diff --git a/roles/moby_engine/defaults/main.yml b/roles/moby_engine/defaults/main.yml deleted file mode 100644 index 801dde1..0000000 --- a/roles/moby_engine/defaults/main.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -# Default variables for the moby_engine role - -# Infrastructure -# Ansible instructions to deploy the infrastructure -# Copyright (C) 2020 Saibotk -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, version 3 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -# Service options. -moby_engine_docker_service_state: started -moby_engine_docker_service_enabled: true -moby_engine_docker_restart_handler_state: restarted diff --git a/roles/moby_engine/handlers/main.yml b/roles/moby_engine/handlers/main.yml deleted file mode 100644 index 26b3546..0000000 --- a/roles/moby_engine/handlers/main.yml +++ /dev/null @@ -1,38 +0,0 @@ ---- -# Handlers file for the moby_engine role - -# Infrastructure -# Ansible instructions to deploy the infrastructure -# Copyright (C) 2020 Saibotk -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, version 3 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -- name: Restart docker service - ansible.builtin.service: - name: "docker" - state: "{{ moby_engine_docker_restart_handler_state }}" - become: true - -- name: Regenerate grub config BIOS - ansible.builtin.command: grub2-mkconfig -o /etc/grub2.cfg - listen: Regenerate grub config - register: grub_output - changed_when: grub_output.rc != 0 - become: true - -- name: Regenerate grub config EFI - ansible.builtin.command: grub2-mkconfig -o /etc/grub2-efi.cfg - listen: Regenerate grub config - register: grub_efi_output - changed_when: grub_efi_output.rc != 0 - become: true diff --git a/roles/moby_engine/meta/main.yml b/roles/moby_engine/meta/main.yml deleted file mode 100644 index e34f473..0000000 --- a/roles/moby_engine/meta/main.yml +++ /dev/null @@ -1,15 +0,0 @@ -galaxy_info: - author: saibotk - description: "Installs moby-engine." - license: GPL-3.0-only - min_ansible_version: "2.9" - standalone: true - - platforms: - - name: Fedora - versions: - - all - - galaxy_tags: [] - -dependencies: [] diff --git a/roles/moby_engine/tasks/Fedora-32.yml b/roles/moby_engine/tasks/Fedora-32.yml deleted file mode 100644 index 41960e9..0000000 --- a/roles/moby_engine/tasks/Fedora-32.yml +++ /dev/null @@ -1,57 +0,0 @@ ---- -# Tasks for the moby_engine role on Fedora 32 - -# Infrastructure -# Ansible instructions to deploy the infrastructure -# Copyright (C) 2020 Saibotk -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, version 3 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -- name: Install moby-engine. - ansible.builtin.package: - name: 'moby-engine' - state: 'present' - become: true - notify: Restart docker service - -- name: Ensure Docker is started and enabled at boot. - ansible.builtin.service: - name: docker - state: "{{ moby_engine_docker_service_state }}" - enabled: "{{ moby_engine_docker_service_enabled }}" - become: true - -- name: Check if line is present - ansible.builtin.shell: cat /etc/default/grub | grep GRUB_CMDLINE_LINUX_DEFAULT - changed_when: false - ignore_errors: true - register: moby_engine_grub_default - -- name: Ensure that GRUB_CMDLINE_LINUX_DEFAULT is present - ansible.builtin.lineinfile: - path: /etc/default/grub - regexp: '^GRUB_CMDLINE_LINUX_DEFAULT' - line: 'GRUB_CMDLINE_LINUX_DEFAULT=""' - become: true - notify: Regenerate grub config - when: moby_engine_grub_default.rc != 0 - -# This method will only add the parameter if it was not already added -# NOTICE: If the parameter was manually added, it will not be altered! -- name: Enable legacy cgroup v1 support (to allow CPU/RAM limits etc) - ansible.builtin.replace: - path: /etc/default/grub - regexp: '^GRUB_CMDLINE_LINUX_DEFAULT=\"((?:(?!systemd\.unified_cgroup_hierarchy=).)*?)"$' - replace: 'GRUB_CMDLINE_LINUX_DEFAULT="\1 systemd.unified_cgroup_hierarchy=0"' - become: true - notify: Regenerate grub config diff --git a/roles/moby_engine/tasks/main.yml b/roles/moby_engine/tasks/main.yml deleted file mode 100644 index ea1ed4d..0000000 --- a/roles/moby_engine/tasks/main.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -# Tasks file for the moby_engine role - -# Infrastructure -# Ansible instructions to deploy the infrastructure -# Copyright (C) 2020 Saibotk -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, version 3 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -- name: "Select tasks for {{ ansible_distribution }} {{ ansible_distribution_major_version }}" # noqa name[template] - ansible.builtin.include_tasks: "{{ distro_file }}" - with_first_found: - - "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml" - - "{{ ansible_distribution }}.yml" - - "{{ ansible_os_family }}.yml" - loop_control: - loop_var: distro_file