Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/roles/foreman/handlers/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- name: Restart foreman service
ansible.builtin.systemd:
name: foreman
state: restarted
6 changes: 6 additions & 0 deletions src/roles/foreman/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,24 @@
name: foreman-ca-cert
path: "{{ foreman_ca_certificate }}"
state: present
notify:
- Restart foreman service

- name: Create the podman secret for Foreman client certificate
containers.podman.podman_secret:
state: present
name: foreman-client-cert
path: "{{ foreman_client_certificate }}"
notify:
- Restart foreman service

- name: Create the podman secret for Foreman client key
containers.podman.podman_secret:
state: present
name: foreman-client-key
path: "{{ foreman_client_key }}"
notify:
- Restart foreman service

- name: Deploy Foreman Container
containers.podman.podman_container:
Expand Down