remove!(moby_engine): unused
This commit is contained in:
parent
0d31368132
commit
160b02a45e
6 changed files with 0 additions and 186 deletions
|
@ -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
|
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
# Service options.
|
|
||||||
moby_engine_docker_service_state: started
|
|
||||||
moby_engine_docker_service_enabled: true
|
|
||||||
moby_engine_docker_restart_handler_state: restarted
|
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
- 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
|
|
|
@ -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: []
|
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
- 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
|
|
|
@ -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 <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
- 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
|
|
Loading…
Add table
Reference in a new issue