Compare commits
18 Commits
Author | SHA1 | Date | |
---|---|---|---|
9e2606334a | |||
824a2ec1ec | |||
9c66f1952b | |||
aadb25069d | |||
7734a8c457 | |||
63ac9d6e4f | |||
584a33172c | |||
3cc31ecb40 | |||
665560250f | |||
d25730cb74 | |||
1ad31b8305 | |||
bdfa48f95d | |||
a29281515b | |||
152e7e3815 | |||
028bde883e | |||
bae88f96a7 | |||
d752b8064b | |||
7d3a8d8f77 |
111
.drone.yml
Normal file
111
.drone.yml
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: CentOS_9-Ansible-Pipeline
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
exclude:
|
||||||
|
- main
|
||||||
|
event: [push]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: ansible_environment_verify
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/centos9:release
|
||||||
|
commands:
|
||||||
|
- . ./.drone.env
|
||||||
|
- env
|
||||||
|
- git log -1
|
||||||
|
- ansible --version
|
||||||
|
- ansible-lint --version
|
||||||
|
|
||||||
|
- name: ansible_lint
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/centos9:release
|
||||||
|
commands:
|
||||||
|
- . ./.drone.env
|
||||||
|
- ansible-lint --offline --nocolor $ANSIBLE_LINT_EXCLUSION
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: Fedora_39-Ansible-Pipeline
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
exclude:
|
||||||
|
- main
|
||||||
|
event: [push]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: ansible_environment_verify
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/fedora39:release
|
||||||
|
commands:
|
||||||
|
- . ./.drone.env
|
||||||
|
- env
|
||||||
|
- git log -1
|
||||||
|
- ansible --version
|
||||||
|
- ansible-lint --version
|
||||||
|
|
||||||
|
- name: ansible_lint
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/fedora39:release
|
||||||
|
commands:
|
||||||
|
- . ./.drone.env
|
||||||
|
- ansible-lint --offline --nocolor $ANSIBLE_LINT_EXCLUSION
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: Debian_11-Ansible-Pipeline
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
exclude:
|
||||||
|
- main
|
||||||
|
event: [push]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: ansible_environment_verify
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/debian11:release
|
||||||
|
commands:
|
||||||
|
- . ./.drone.env
|
||||||
|
- env
|
||||||
|
- git log -1
|
||||||
|
- ansible --version
|
||||||
|
- ansible-lint --version
|
||||||
|
|
||||||
|
- name: ansible_lint
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/debian11:release
|
||||||
|
commands:
|
||||||
|
- . ./.drone.env
|
||||||
|
- ansible-lint --offline --nocolor $ANSIBLE_LINT_EXCLUSION
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: Debian_12-Ansible-Pipeline
|
||||||
|
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
exclude:
|
||||||
|
- main
|
||||||
|
event: [push]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: ansible_environment_verify
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/debian12:release
|
||||||
|
commands:
|
||||||
|
- . ./.drone.env
|
||||||
|
- env
|
||||||
|
- git log -1
|
||||||
|
- ansible --version
|
||||||
|
- ansible-lint --version
|
||||||
|
|
||||||
|
- name: ansible_lint
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/debian12:release
|
||||||
|
commands:
|
||||||
|
- . ./.drone.env
|
||||||
|
- ansible-lint --offline --nocolor $ANSIBLE_LINT_EXCLUSION
|
@ -7,7 +7,10 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Ansible-Development-Pipeline:
|
Ansible-Development-Pipeline:
|
||||||
runs-on: ansible-dev-centos
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ ansible-dev-centos, ansible-dev-fedora, ansible-dev-debian ]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
@ -15,18 +18,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Ansible Environment Verify
|
- name: Ansible Environment Verify
|
||||||
run: |
|
run: |
|
||||||
echo "BUILD HOST: $(cat /etc/hostname)" && echo
|
. ./.drone.env
|
||||||
echo "BUILD USER: $(whoami)" && echo
|
env
|
||||||
echo "PWD: $(pwd)" && echo
|
git log -1
|
||||||
lscpu && echo
|
ansible --version
|
||||||
. ./.ci.env && echo
|
ansible-lint --version
|
||||||
env && echo
|
|
||||||
git log -1 && echo
|
|
||||||
ansible --version && echo
|
|
||||||
ansible-lint --version --offline && echo
|
|
||||||
|
|
||||||
|
|
||||||
- name: Run Ansible-Lint
|
- name: Run Ansible-Lint
|
||||||
run: |
|
run: |
|
||||||
. ./.ci.env
|
. ./.drone.env
|
||||||
ansible-lint --offline --nocolor $ANSIBLE_LINT_EXCLUSION
|
ansible-lint --offline --nocolor $ANSIBLE_LINT_EXCLUSION
|
||||||
|
@ -8,7 +8,7 @@ namespace: jchristianh
|
|||||||
name: baseos
|
name: baseos
|
||||||
|
|
||||||
# The version of the collection. Must be compatible with semantic versioning
|
# The version of the collection. Must be compatible with semantic versioning
|
||||||
version: 1.0.36
|
version: 1.0.35
|
||||||
|
|
||||||
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
|
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
|
||||||
readme: README.md
|
readme: README.md
|
||||||
|
@ -8,9 +8,13 @@
|
|||||||
{{ motd_host_uptime | regex_replace(motd_nonday_filter, motd_nonday_filter_repl) }}
|
{{ motd_host_uptime | regex_replace(motd_nonday_filter, motd_nonday_filter_repl) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
- name: Update MOTD
|
- name: Update MOTD
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: templates/motd.j2
|
src: templates/motd.j2
|
||||||
dest: "{{ motd_motd_file }}"
|
dest: "{{ motd_motd_file }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
|
|
||||||
|
...
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
---
|
---
|
||||||
- name: Deploy and configure SNMP
|
- name: Deploy and configure SNMP
|
||||||
block:
|
block:
|
||||||
- name: Set package name for Debian
|
- name: Set package name for Debian 12
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
snmpd_conf_snmp_pkg: snmpd
|
snmpd_conf_snmp_pkg: snmpd
|
||||||
when:
|
when:
|
||||||
- ansible_distribution | lower == 'debian'
|
- ansible_distribution | lower == 'debian'
|
||||||
|
- ansible_distribution_major_version == '12'
|
||||||
|
|
||||||
- name: Install SNMP
|
- name: Install SNMP
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
|
Reference in New Issue
Block a user