From 98bd8a391bc7b1e1503dcf1f32028d5c2e359179 Mon Sep 17 00:00:00 2001 From: Richard Faulkner Date: Mon, 25 Sep 2023 16:59:55 -0400 Subject: [PATCH 1/5] Create settings.json --- .vscode/settings.json | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..878ec9e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "ansible.python.interpreterPath": "/usr/local/bin/python3" +} \ No newline at end of file From 1f44c3697dc88a795e45af84299f62be7281e196 Mon Sep 17 00:00:00 2001 From: Richard Faulkner Date: Mon, 25 Sep 2023 17:05:57 -0400 Subject: [PATCH 2/5] Create .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..235e835 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +inventory.txt From 74335230c11d8cb76292fd7cb9845507e2622470 Mon Sep 17 00:00:00 2001 From: Richard Faulkner Date: Tue, 26 Sep 2023 08:34:55 -0400 Subject: [PATCH 3/5] Update update-system.yml --- update-system.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-system.yml b/update-system.yml index 0050bdd..50e647b 100644 --- a/update-system.yml +++ b/update-system.yml @@ -1,6 +1,6 @@ --- - name: Update System to Latest Packages - hosts: localhost + hosts: 10.101.1.249,10.101.1.212 connection: local become: true From 7eb4591589013e959068a731d426762550b7c7d0 Mon Sep 17 00:00:00 2001 From: Richard Faulkner Date: Tue, 26 Sep 2023 08:40:56 -0400 Subject: [PATCH 4/5] Testing Lightspeed --- .vscode/settings.json | 2 +- deploy_monitoring.yml | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 deploy_monitoring.yml diff --git a/.vscode/settings.json b/.vscode/settings.json index 878ec9e..bf2a7aa 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,3 @@ { - "ansible.python.interpreterPath": "/usr/local/bin/python3" + "ansible.python.interpreterPath": "/usr/local/bin/python3.10" } \ No newline at end of file diff --git a/deploy_monitoring.yml b/deploy_monitoring.yml new file mode 100644 index 0000000..6f3c7a8 --- /dev/null +++ b/deploy_monitoring.yml @@ -0,0 +1,14 @@ +--- +- name: Deploy Monitoring + hosts: monitoring + become: true + + # module_defaults + # ansible.posix.firewalld: + # permanent: true + + tasks: + # - name: Include redhat.rhel_system_roles.cockpit + + + \ No newline at end of file From 4b01b3999d4f79f542b3eeab32b939a118d7bac3 Mon Sep 17 00:00:00 2001 From: Richard Faulkner Date: Tue, 26 Sep 2023 08:47:31 -0400 Subject: [PATCH 5/5] Update deploy_monitoring.yml --- deploy_monitoring.yml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/deploy_monitoring.yml b/deploy_monitoring.yml index 6f3c7a8..c409543 100644 --- a/deploy_monitoring.yml +++ b/deploy_monitoring.yml @@ -8,7 +8,25 @@ # permanent: true tasks: - # - name: Include redhat.rhel_system_roles.cockpit - + - name: Include redhat.rhel_system_roles.cockpit + ansible.builtin.include_role: + name: redhat.rhel_system_roles.cockpit - \ No newline at end of file + - name: Copy files/cockpit.conf to /etc/cockpit + ansible.builtin.copy: + src: ./files/cockpit.conf + dest: /etc/cockpit/ + owner: root + group: root + mode: 420 + + - name: Restart cockpit service + ansible.builtin.service: + name: cockpit + state: restarted + + - name: Allow cockpit through firewall + ansible.posix.firewalld: + service: cockpit + permanent: true + state: enabled