summaryrefslogtreecommitdiffstats
path: root/roles/cockpit
diff options
context:
space:
mode:
Diffstat (limited to 'roles/cockpit')
-rw-r--r--roles/cockpit/meta/main.yml18
-rw-r--r--roles/cockpit/tasks/main.yml17
2 files changed, 35 insertions, 0 deletions
diff --git a/roles/cockpit/meta/main.yml b/roles/cockpit/meta/main.yml
new file mode 100644
index 000000000..43047902d
--- /dev/null
+++ b/roles/cockpit/meta/main.yml
@@ -0,0 +1,18 @@
+---
+galaxy_info:
+ author: Scott Dodson
+ description: Deploy and Enable cockpit-ws plus optional plugins
+ company: Red Hat, Inc.
+ license: Apache License, Version 2.0
+ min_ansible_version: 1.7
+ platforms:
+ - name: EL
+ versions:
+ - 7
+ categories:
+ - cloud
+dependencies:
+- role: os_firewall
+ os_firewall_allow:
+ - service: cockpit-ws
+ port: 9090/tcp
diff --git a/roles/cockpit/tasks/main.yml b/roles/cockpit/tasks/main.yml
new file mode 100644
index 000000000..681029332
--- /dev/null
+++ b/roles/cockpit/tasks/main.yml
@@ -0,0 +1,17 @@
+---
+- name: Install cockpit-ws
+ action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
+ with_items:
+ - cockpit-ws
+ - cockpit-shell
+ - cockpit-bridge
+ - cockpit-docker
+ - "{{ cockpit_plugins }}"
+ when: not openshift.common.is_containerized | bool
+
+- name: Enable cockpit-ws
+ service:
+ name: cockpit.socket
+ enabled: true
+ state: started
+ when: not openshift.common.is_containerized | bool