Skip to content
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
inventory.txt
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ansible.python.interpreterPath": "/usr/local/bin/python3.10"
}
32 changes: 32 additions & 0 deletions deploy_monitoring.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
- name: Deploy Monitoring
hosts: monitoring
become: true

# module_defaults
# ansible.posix.firewalld:
# permanent: true

tasks:
- name: Include redhat.rhel_system_roles.cockpit
ansible.builtin.include_role:
name: redhat.rhel_system_roles.cockpit

- 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
2 changes: 1 addition & 1 deletion update-system.yml
Original file line number Diff line number Diff line change
@@ -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

Expand Down