🔨 Change folder structure
This commit is contained in:
parent
f044682421
commit
09fd2d74d4
9
.vscode/settings.json
vendored
9
.vscode/settings.json
vendored
@ -1,9 +1,10 @@
|
|||||||
{
|
{
|
||||||
"files.autoSave": "afterDelay",
|
"files.autoSave": "afterDelay",
|
||||||
"files.associations": {
|
"files.associations": {
|
||||||
"hosts": "yaml",
|
"**hosts*": "yaml",
|
||||||
"*.yml": "ansible"
|
"*.yml": "ansible",
|
||||||
|
"**/.woodpecker/*.yml": "yaml"
|
||||||
},
|
},
|
||||||
"ansible.ansible.useFullyQualifiedCollectionNames": true,
|
"ansible.ansible.useFullyQualifiedCollectionNames": true,
|
||||||
"editor.formatOnSave": true
|
"editor.formatOnSave": true
|
||||||
}
|
}
|
||||||
|
36
.woodpecker/ansible.yml
Normal file
36
.woodpecker/ansible.yml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
pipeline:
|
||||||
|
check-ansible-syntax:
|
||||||
|
image: harbor.sebclem.fr/sebclem/woodpecker-ansible-runner
|
||||||
|
pull: true
|
||||||
|
settings:
|
||||||
|
playbook: playbooks/install.yml
|
||||||
|
galaxy_file: roles/requirements.yml
|
||||||
|
check_syntax: true
|
||||||
|
vault_token:
|
||||||
|
from_secret: ansible_vault_token
|
||||||
|
when:
|
||||||
|
- event: "push"
|
||||||
|
branch: [main, master]
|
||||||
|
- event: [pull_request, manual, deployment]
|
||||||
|
|
||||||
|
run-ansible-playbook:
|
||||||
|
image: harbor.sebclem.fr/sebclem/woodpecker-ansible-runner
|
||||||
|
pull: true
|
||||||
|
settings:
|
||||||
|
verbosity: ${verbosity=0}
|
||||||
|
limit: ${limit}
|
||||||
|
tags: ${tags}
|
||||||
|
playbook: playbooks/install.yml
|
||||||
|
galaxy_file: roles/requirements.yml
|
||||||
|
vault_token:
|
||||||
|
from_secret: ansible_vault_token
|
||||||
|
private_key:
|
||||||
|
from_secret: ansible_private_key
|
||||||
|
when:
|
||||||
|
environment: production
|
||||||
|
event: deployment
|
||||||
|
|
||||||
|
when:
|
||||||
|
- event: "push"
|
||||||
|
branch: [main, master]
|
||||||
|
- event: [pull_request, manual, deployment]
|
@ -1,8 +1,9 @@
|
|||||||
[defaults]
|
[defaults]
|
||||||
inventory = hosts
|
inventory = inventories/hosts.yml
|
||||||
remote_user = root
|
remote_user = root
|
||||||
host_key_checking = True
|
host_key_checking = True
|
||||||
vault_password_file = credentials/vault_token
|
vault_password_file = credentials/vault_token
|
||||||
roles_path = ./roles
|
roles_path = ./roles
|
||||||
force_color = true
|
force_color = true
|
||||||
|
stdout_callback = yaml
|
||||||
ansible_managed = This file is managed by ansible, don't make changes here - they will be overwritten.
|
ansible_managed = This file is managed by ansible, don't make changes here - they will be overwritten.
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
all:
|
all:
|
||||||
children:
|
children:
|
||||||
nodes:
|
nodes:
|
@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Load secrets
|
- name: Load secrets
|
||||||
include_vars:
|
ansible.builtin.include_vars:
|
||||||
file: "secrets/{{ inventory_hostname }}.yml"
|
file: "{{ inventory_dir }}/secrets/{{ inventory_hostname }}.yml"
|
||||||
tags:
|
tags:
|
||||||
- always
|
- always
|
||||||
|
|
@ -3,7 +3,7 @@
|
|||||||
"extends": [
|
"extends": [
|
||||||
"config:base",
|
"config:base",
|
||||||
"group:nodeJs",
|
"group:nodeJs",
|
||||||
"local>sebclem/renovate-configs:notest",
|
"local>sebclem/renovate-configs",
|
||||||
"local>sebclem/renovate-configs:ansible_host_var"
|
"local>sebclem/renovate-configs:ansible_host_var"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user