diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..235e835 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +inventory.txt diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..bf2a7aa --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "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..c409543 --- /dev/null +++ b/deploy_monitoring.yml @@ -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 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