diff --git a/cockpit.yml b/cockpit.yml new file mode 100644 index 0000000000000000000000000000000000000000..997835b41a9ee75357ba8157183a8aba46726fa2 --- /dev/null +++ b/cockpit.yml @@ -0,0 +1,4 @@ +--- +- hosts: all + roles: + - cockpit diff --git a/roles/cockpit/meta/main.yml b/roles/cockpit/meta/main.yml new file mode 100644 index 0000000000000000000000000000000000000000..cacfdeef9c6cc43e1e91d721ee3b3f387f1999c3 --- /dev/null +++ b/roles/cockpit/meta/main.yml @@ -0,0 +1,14 @@ +galaxy_info: + author: Christoph Kern + description: Installs EPEL repository + license: GPL-3.0-only + + min_ansible_version: 2.4 + platforms: + - name: CentOS + versions: + - 7 + + galaxy_tags: [] + +dependencies: [] diff --git a/roles/cockpit/tasks/main.yml b/roles/cockpit/tasks/main.yml new file mode 100644 index 0000000000000000000000000000000000000000..b4f7bc5614a16459de5779d3adc8c081fc1a30be --- /dev/null +++ b/roles/cockpit/tasks/main.yml @@ -0,0 +1,33 @@ +--- + +# Shivering-Isles Infrastructure +# Ansible instructions to deploy the infrastructure for the Shivering-Isles +# Copyright (C) 2019-2020 Christoph (Sheogorath) Kern +# +# 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 Cockpit + yum: + name: "{{ packages }}" + state: absent + become: true + vars: + packages: + - cockpit + - cockpit-docker + +- name: Enable socket activation + systemd: + name: cockpit.socket + enabled: true + become: true