forked from techno-tim/k3s-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
324 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,20 +5,42 @@ on: | |
push: | ||
branches: | ||
- master | ||
|
||
paths-ignore: | ||
- '**/README.md' | ||
jobs: | ||
pre-commit-ci: | ||
name: Pre-Commit | ||
runs-on: ubuntu-latest | ||
env: | ||
PYTHON_VERSION: "3.10" | ||
|
||
steps: | ||
- name: Check out the codebase | ||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # 3.0.2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Set up Python ${{ env.PYTHON_VERSION }} | ||
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # 4.3.0 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
cache: 'pip' # caching pip dependencies | ||
|
||
- name: Cache pip | ||
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # 3.0.11 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('./requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Set up Python 3.x | ||
uses: actions/setup-python@b55428b1882923874294fa556849718a1d7f2ca5 #4.0.2 | ||
- name: Cache Ansible | ||
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # 3.0.11 | ||
with: | ||
python-version: "3.x" | ||
path: ~/.ansible/collections | ||
key: ${{ runner.os }}-ansible-${{ hashFiles('collections/requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-ansible- | ||
- name: Install dependencies | ||
run: | | ||
|
@@ -35,4 +57,17 @@ jobs: | |
echo "::endgroup::" | ||
- name: Run pre-commit | ||
uses: pre-commit/[email protected] | ||
uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 # 3.0.0 | ||
|
||
ensure-pinned-actions: | ||
name: Ensure SHA Pinned Actions | ||
runs-on: self-hosted | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # 3.0.2 | ||
- name: Ensure SHA pinned actions | ||
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@6ca5574367befbc9efdb2fa25978084159c5902d # 1.3.0 | ||
with: | ||
allowlist: | | ||
aws-actions/ | ||
docker/login-action |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
[defaults] | ||
nocows = True | ||
roles_path = ./roles | ||
inventory = ./hosts.ini | ||
nocows = True | ||
roles_path = ./roles | ||
inventory = ./hosts.ini | ||
stdout_callback = yaml | ||
|
||
remote_tmp = $HOME/.ansible/tmp | ||
local_tmp = $HOME/.ansible/tmp | ||
pipelining = True | ||
become = True | ||
host_key_checking = False | ||
deprecation_warnings = False | ||
callback_whitelist = profile_tasks | ||
remote_tmp = $HOME/.ansible/tmp | ||
local_tmp = $HOME/.ansible/tmp | ||
timeout = 60 | ||
host_key_checking = False | ||
deprecation_warnings = False | ||
callback_whitelist = profile_tasks | ||
log_path = ./ansible.log | ||
|
||
[privilege_escalation] | ||
become = True | ||
|
||
[ssh_connection] | ||
scp_if_ssh = smart | ||
retries = 3 | ||
ssh_args = -o ControlMaster=auto -o ControlPersist=30m -o Compression=yes -o ServerAliveInterval=15s | ||
pipelining = True | ||
control_path = %(directory)s/%%h-%%r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
molecule>=4.0.1 | ||
ansible-core>=2.13.2 | ||
ansible-lint>=6.6.0 | ||
kubernetes>=12.0.0 | ||
molecule-vagrant>=1.0.0 | ||
molecule>=4.0.1 | ||
netaddr>=0.8.0 | ||
pyyaml>=3.11 | ||
yamllint>=1.28.0 | ||
jmespath>=1.0.1 | ||
jsonpatch>=1.32 | ||
pre-commit>=2.20.0 | ||
netaddr>=0.8.0 |
Oops, something went wrong.