Trimming down Ansible folder.

This commit is contained in:
2025-01-16 17:44:58 -05:00
parent 7298674536
commit 83272b36b8
9 changed files with 5 additions and 64 deletions
@@ -1,9 +1,5 @@
---
name: "CI"
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
name: "Ansible Lint"
on: # yamllint disable-line rule:truthy
pull_request:
-3
View File
@@ -1,3 +0,0 @@
{
"recommendations": ["redhat.ansible", "redhat.vscode-redhat-account"]
}
-3
View File
@@ -1,3 +0,0 @@
{
"ansible.python.interpreterPath": "/home/charish/rinoa-docker/ansible/.venv/bin/python"
}
+2 -6
View File
@@ -1,17 +1,13 @@
[defaults]
# Specify the inventory file
inventory = inventory/hosts.yml
# Define the directory for host and group variables
host_vars_inventory = inventory/host_vars
group_vars_inventory = inventory/group_vars
inventory = hosts.yml
collections_path = ./collections/ansible_collections
# Set the logging verbosity level
verbosity = 2
# Set the default user for SSH connections
remote_user = myuser
remote_user = charish
# Define the default become method
become_method = sudo
+2 -2
View File
@@ -1,8 +1,8 @@
---
- name: Deploy config templates and trigger GitHub workflow
hosts: all
hosts: rinoa
vars:
appdata_base_path: "~/.docker/config/appdata"
appdata_base_path: "/home/charish/.docker/config/appdata"
tasks:
- name: Ensure target directories exist
ansible.builtin.file:
-2
View File
@@ -1,2 +0,0 @@
---
server_name: webserver2
-12
View File
@@ -1,12 +0,0 @@
---
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
@@ -1,31 +0,0 @@
---
- 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