Merge remote-tracking branch 'refs/remotes/origin/ansible-config-mgmt-playbook' into ansible-config-mgmt-playbook

This commit is contained in:
2025-01-16 17:46:37 -05:00
7 changed files with 71 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
---
schedule:
interval: "daily"
+17
View File
@@ -0,0 +1,17 @@
---
name: "CI"
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on: # yamllint disable-line rule:truthy
pull_request:
branches: [main]
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
ansible-lint:
uses: ansible/ansible-content-actions/.github/workflows/ansible_lint.yaml@main
+3
View File
@@ -0,0 +1,3 @@
{
"recommendations": ["redhat.ansible", "redhat.vscode-redhat-account"]
}
+3
View File
@@ -0,0 +1,3 @@
{
"ansible.python.interpreterPath": "/home/charish/rinoa-docker/ansible/.venv/bin/python"
}
+2
View File
@@ -0,0 +1,2 @@
---
server_name: webserver2
+12
View File
@@ -0,0 +1,12 @@
---
all:
hosts:
benedikta:
ansible_host: 192.168.1.241
ansible_user: charish
rikku:
ansible_host: 192.168.1.253
ansible_user: pi
rinoa:
ansible_host: 192.168.1.254
ansible_user: charish
+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