Adding in Ansible (still a WIP).

This commit is contained in:
2025-01-16 16:12:35 -05:00
parent 5495f51326
commit 7298674536
4270 changed files with 606627 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
---
- name: Update web servers
hosts: webservers
become: true
tasks:
- name: Ensure apache is at the present version
ansible.builtin.dnf:
name: httpd
state: present
- name: Write the apache config file
ansible.builtin.template:
src: /srv/httpd.j2
dest: /etc/httpd.conf
mode: "0644"
- name: Update db servers
hosts: databases
become: true
tasks:
- name: Ensure postgresql is at the present version
ansible.builtin.dnf:
name: postgresql
state: present
- name: Ensure that postgresql is started
ansible.builtin.service:
name: postgresql
state: started