Parameterized packages

This commit is contained in:
Sebastien Perreault 2018-08-22 15:40:45 -04:00 committed by Barry van Someren
parent 613ce9fe8e
commit 1e626ea318
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
--- ---
# defaults file for bvansomeren.cockpit # defaults file for bvansomeren.cockpit
cockpit_disable_tls: no cockpit_disable_tls: no
cockpit_packages:
- cockpit
- cockpit-bridge
- cockpit-machines

View File

@ -2,7 +2,10 @@
# tasks file for bvansomeren.cockpit # tasks file for bvansomeren.cockpit
- name: ensure cockpit is installed - name: ensure cockpit is installed
package: name=cockpit state=present package:
name: "{{ item }}"
state: present
loop: "{{ cockpit_packages }}"
- name: disable cockpit internal TLS - name: disable cockpit internal TLS
ini_file: dest=/usr/lib/systemd/system/cockpit.service section=Service option=ExecStart value="/usr/libexec/cockpit-ws --no-tls" ini_file: dest=/usr/lib/systemd/system/cockpit.service section=Service option=ExecStart value="/usr/libexec/cockpit-ws --no-tls"