Merge remote-tracking branch 'refs/remotes/origin/ansible-config-mgmt-playbook' into ansible-config-mgmt-playbook
This commit is contained in:
Vendored
+3
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
schedule:
|
||||||
|
interval: "daily"
|
||||||
Vendored
+17
@@ -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
|
||||||
Vendored
+3
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"recommendations": ["redhat.ansible", "redhat.vscode-redhat-account"]
|
||||||
|
}
|
||||||
Vendored
+3
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"ansible.python.interpreterPath": "/home/charish/rinoa-docker/ansible/.venv/bin/python"
|
||||||
|
}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
server_name: webserver2
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user