This commit is contained in:
2025-01-17 18:39:37 -05:00
parent 9d8207382a
commit 7c4762fbd7
8 changed files with 11 additions and 62 deletions
-3
View File
@@ -1,3 +0,0 @@
---
schedule:
interval: "daily"
@@ -214,9 +214,20 @@ jobs:
with:
ref: main
- name: Install Ansible
uses: alex-oleshkevich/setup-ansible@v1.0.1
with:
version: "2.18.1"
- name: Install Vault
uses: cpanato/vault-installer@main
- name: Run Ansible Playbook for Docker Service Configs
uses: actions-ansible@v2
with:
playbook: ./ansible/docker_config_deploy.yml
inventory: ./ansible/ansible-inventory
- name: Generate .env file for deployment
run: |
vault kv get -format=json rinoa-docker/env | jq -r '.data.data' | jq -r 'keys[] as $k | "\($k)='\''\(.[$k])'\''"' > .env
-3
View File
@@ -1,3 +0,0 @@
---
schedule:
interval: "daily"
-17
View File
@@ -1,17 +0,0 @@
---
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
@@ -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
View File
@@ -1,2 +0,0 @@
---
server_name: webserver2
-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