.
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
---
|
|
||||||
schedule:
|
|
||||||
interval: "daily"
|
|
||||||
@@ -214,9 +214,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: main
|
ref: main
|
||||||
|
|
||||||
|
- name: Install Ansible
|
||||||
|
uses: alex-oleshkevich/setup-ansible@v1.0.1
|
||||||
|
with:
|
||||||
|
version: "2.18.1"
|
||||||
|
|
||||||
- name: Install Vault
|
- name: Install Vault
|
||||||
uses: cpanato/vault-installer@main
|
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
|
- name: Generate .env file for deployment
|
||||||
run: |
|
run: |
|
||||||
vault kv get -format=json rinoa-docker/env | jq -r '.data.data' | jq -r 'keys[] as $k | "\($k)='\''\(.[$k])'\''"' > .env
|
vault kv get -format=json rinoa-docker/env | jq -r '.data.data' | jq -r 'keys[] as $k | "\($k)='\''\(.[$k])'\''"' > .env
|
||||||
|
|||||||
Vendored
-3
@@ -1,3 +0,0 @@
|
|||||||
---
|
|
||||||
schedule:
|
|
||||||
interval: "daily"
|
|
||||||
Vendored
-17
@@ -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
|
|
||||||
Vendored
-3
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"recommendations": ["redhat.ansible", "redhat.vscode-redhat-account"]
|
|
||||||
}
|
|
||||||
Vendored
-3
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"ansible.python.interpreterPath": "/home/charish/rinoa-docker/ansible/.venv/bin/python"
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
server_name: webserver2
|
|
||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user