Skip to content

Commit

Permalink
Merge existing roles to collection
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Jul 7, 2023
0 parents commit 44202ba
Show file tree
Hide file tree
Showing 686 changed files with 30,132 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
skip_list:
- 'yaml'
- command-instead-of-module # Using command rather than module
- git-latest # Git checkouts must contain explicit version
- no-changed-when # Commands should not change things if nothing needs doing
- package-latest # Package installs should not use latest
- ignore-errors
- var-naming[no-role-prefix]
28 changes: 28 additions & 0 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Ansible Lint # feel free to pick your own name

on: # yamllint disable-line rule:truthy
# Run CI against all pushes (direct commits, also merged PRs), Pull Requests
push:
branches: [main]
paths:
- 'roles/**'
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
paths:
- 'roles/**'

jobs:
ansible-lint:
runs-on: ubuntu-latest

steps:
# Important: This sets up your GITHUB_WORKSPACE environment variable
- uses: actions/checkout@v3

- name: Lint Ansible Playbook
# replace "master" with any valid ref
uses: ansible/ansible-lint-action@main
with:
path: "roles/"
51 changes: 51 additions & 0 deletions .github/workflows/barman.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: "alphanodes.setup.barman"
'on':
pull_request:
push:
branches:
- main
paths:
- 'roles/barman/**'
- 'molecule/barman/**'
- '.github/workflows/barman.yml'

defaults:
run:
working-directory: 'alphanodes.barman'

jobs:
build:
runs-on: ubuntu-latest
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1

strategy:
matrix:
distro:
- ubuntu2204
- debian11

steps:
- name: Check out the codebase.
uses: actions/checkout@v3
with:
path: 'alphanodes.barman'

- name: Set up Python 3.
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install test dependencies.
run: |
python -m pip install --no-cache-dir --upgrade pip
python -m pip install -r requirements.txt
- name: Run Molecule tests.
run: |
molecule --version
molecule test -s barman
env:
MOLECULE_DISTRO: ${{ matrix.distro }}
51 changes: 51 additions & 0 deletions .github/workflows/memcached.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: "alphanodes.setup.memcached"
'on':
pull_request:
push:
branches:
- main
paths:
- 'roles/memcached/**'
- 'molecule/memcached/**'
- '.github/workflows/memcached.yml'

defaults:
run:
working-directory: 'alphanodes.memcached'

jobs:
build:
runs-on: ubuntu-latest
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1

strategy:
matrix:
distro:
- ubuntu2204
- debian11

steps:
- name: Check out the codebase.
uses: actions/checkout@v3
with:
path: 'alphanodes.barman'

- name: Set up Python 3.
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install test dependencies.
run: |
python -m pip install --no-cache-dir --upgrade pip
python -m pip install -r requirements.txt
- name: Run Molecule tests.
run: |
molecule --version
molecule test -s memcached
env:
MOLECULE_DISTRO: ${{ matrix.distro }}
44 changes: 44 additions & 0 deletions .github/workflows/mongodb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: Systemd Timer
'on':
pull_request:
push:
branches:
- main

defaults:
run:
working-directory: 'AlphaNodes.drupal_task'

jobs:
molecule:
name: Molecule
runs-on: ubuntu-latest
strategy:
matrix:
distro:
- ubuntu2204
- debian11

steps:
- name: Check out the codebase.
uses: actions/checkout@v3
with:
path: 'AlphaNodes.drupal_task'

- name: Set up Python 3.
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install test dependencies.
run: pip3 install ansible molecule molecule-plugins[docker] docker

- name: Run Molecule tests.
run: |
molecule --version
molecule test -s mongodb
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
MOLECULE_DISTRO: ${{ matrix.distro }}
51 changes: 51 additions & 0 deletions .github/workflows/mysql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: "alphanodes.setup.mysql"
'on':
pull_request:
push:
branches:
- main
paths:
- 'roles/mysql/**'
- 'molecule/mysql/**'
- '.github/workflows/mysql.yml'

defaults:
run:
working-directory: 'alphanodes.mysql'

jobs:
build:
runs-on: ubuntu-latest
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1

strategy:
matrix:
distro:
- ubuntu2204
- debian11

steps:
- name: Check out the codebase.
uses: actions/checkout@v3
with:
path: 'alphanodes.barman'

- name: Set up Python 3.
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install test dependencies.
run: |
python -m pip install --no-cache-dir --upgrade pip
python -m pip install -r requirements.txt
- name: Run Molecule tests.
run: |
molecule --version
molecule test -s mysql
env:
MOLECULE_DISTRO: ${{ matrix.distro }}
51 changes: 51 additions & 0 deletions .github/workflows/pip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: "alphanodes.setup.pip"
'on':
pull_request:
push:
branches:
- main
paths:
- 'roles/pip/**'
- 'molecule/pip/**'
- '.github/workflows/pip.yml'

defaults:
run:
working-directory: 'alphanodes.pip'

jobs:
build:
runs-on: ubuntu-latest
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1

strategy:
matrix:
distro:
- ubuntu2204
- debian11

steps:
- name: Check out the codebase.
uses: actions/checkout@v3
with:
path: 'alphanodes.barman'

- name: Set up Python 3.
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install test dependencies.
run: |
python -m pip install --no-cache-dir --upgrade pip
python -m pip install -r requirements.txt
- name: Run Molecule tests.
run: |
molecule --version
molecule test -s pip
env:
MOLECULE_DISTRO: ${{ matrix.distro }}
51 changes: 51 additions & 0 deletions .github/workflows/postgresql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: "alphanodes.setup.postgresql"
'on':
pull_request:
push:
branches:
- main
paths:
- 'roles/postgresql/**'
- 'molecule/postgresql/**'
- '.github/workflows/postgresql.yml'

defaults:
run:
working-directory: 'alphanodes.postgresql'

jobs:
build:
runs-on: ubuntu-latest
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1

strategy:
matrix:
distro:
- ubuntu2204
- debian11

steps:
- name: Check out the codebase.
uses: actions/checkout@v3
with:
path: 'alphanodes.barman'

- name: Set up Python 3.
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install test dependencies.
run: |
python -m pip install --no-cache-dir --upgrade pip
python -m pip install -r requirements.txt
- name: Run Molecule tests.
run: |
molecule --version
molecule test -s postgresql
env:
MOLECULE_DISTRO: ${{ matrix.distro }}
51 changes: 51 additions & 0 deletions .github/workflows/postgresql_client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: "alphanodes.setup.postgresql_client"
'on':
pull_request:
push:
branches:
- main
paths:
- 'roles/postgresql_client/**'
- 'molecule/postgresql_client/**'
- '.github/workflows/postgresql_client.yml'

defaults:
run:
working-directory: 'alphanodes.postgresql_client'

jobs:
build:
runs-on: ubuntu-latest
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1

strategy:
matrix:
distro:
- ubuntu2204
- debian11

steps:
- name: Check out the codebase.
uses: actions/checkout@v3
with:
path: 'alphanodes.barman'

- name: Set up Python 3.
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install test dependencies.
run: |
python -m pip install --no-cache-dir --upgrade pip
python -m pip install -r requirements.txt
- name: Run Molecule tests.
run: |
molecule --version
molecule test -s postgresql_client
env:
MOLECULE_DISTRO: ${{ matrix.distro }}
Loading

0 comments on commit 44202ba

Please sign in to comment.