diff options
| author | spmfox <spmfox@foxwd.com> | 2024-07-03 17:48:10 -0400 |
|---|---|---|
| committer | spmfox <spmfox@foxwd.com> | 2024-07-03 17:48:10 -0400 |
| commit | 7c9785edef148a363318ef7e61b1d259082d25be (patch) | |
| tree | 36a5b30819bed5a825c7363ebc15461e5cfcf0e3 /deploy.yml | |
| parent | c56e33f2a77ae994acbac64ffe372a01d60ef481 (diff) | |
switching to bastion mode for cockpit-ws container, removing centos logos since cockpit-ws bastion cannot use them
Diffstat (limited to 'deploy.yml')
| -rw-r--r-- | deploy.yml | 23 |
1 files changed, 17 insertions, 6 deletions
@@ -103,14 +103,25 @@ - "bootc-fetch-apply-updates.timer" - "bootc-fetch-apply-updates.service" - - name: Install container-based cockpit-ws - ansible.builtin.shell: "podman container runlabel INSTALL quay.io/cockpit/ws systemctl enable cockpit.service" + - name: Generate quadlet file for cockpit-bastion + ansible.builtin.shell: "podman run --rm -it ghcr.io/containers/podlet -i podman run --rm -d --name cockpit-bastion -p 9090:9090 -v /etc/cockpit/ws-certs.d/:/etc/cockpit/ws-certs.d/:rw,Z quay.io/cockpit/ws" + register: cockpit_bastion_quadlet - - name: Enable and start container-based Cockpit - ansible.builtin.systemd: - name: "cockpit.service" + - name: Install quadlet file for cockpit-bastion + ansible.builtin.copy: + content: "{{ cockpit_bastion_quadlet.stdout }}" + dest: "/etc/containers/systemd/cockpit-bastion.container" + + - name: Create SSL certificate directory for cockpit-ws + ansible.builtin.file: + path: "/etc/cockpit/ws-certs.d" + state: directory + + - name: Start cockpit-bastion service + ansible.builtin.systemd_service: + name: "cockpit-bastion.service" state: "started" - enabled: true + daemon-reload: true vars: ansible_user: "root" tags: configure |
