Compare commits

..

No commits in common. "42a5c69d193e5cff42272c8ece822c2382832286" and "8b522e0af0525f55556ac02ea382f5c31f128fe9" have entirely different histories.

7 changed files with 41 additions and 200 deletions

View File

@ -1,174 +0,0 @@
---
kind: pipeline
type: docker
name: run_ansible_tests_centos9
global-variables:
ansible_image : &ansible_image "gitea.thezengarden.net/podman/ansible-dev/centos9:release-34"
ansible_inventory : &ansible_inventory "-i 127.0.0.1, --connection=local"
ansible_playbook : &ansible_playbook "baseos.yml"
environment:
ANSIBLE_INVENTORY : *ansible_inventory
ANSIBLE_PLAYBOOK : *ansible_playbook
trigger:
branch:
exclude:
- main
event: [push]
steps:
- name: "ansible_environment_verify"
image: *ansible_image
commands:
- git log -1
- ansible --version
- ansible-lint --version
- name: "ansible_galaxy_requirements"
image: *ansible_image
commands:
- ansible-galaxy install -r requirements.yml
- name: "ansible_lint"
image: *ansible_image
commands:
- ansible-lint --offline
- name: "ansible_playbook_execution"
image: *ansible_image
commands:
- ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK
---
kind: pipeline
type: docker
name: run_ansible_tests_fedora39
global-variables:
ansible_image : &ansible_image "gitea.thezengarden.net/podman/ansible-dev/fedora39:release-34"
ansible_inventory : &ansible_inventory "-i 127.0.0.1, --connection=local"
ansible_playbook : &ansible_playbook "baseos.yml"
environment:
ANSIBLE_INVENTORY : *ansible_inventory
ANSIBLE_PLAYBOOK : *ansible_playbook
trigger:
branch:
exclude:
- main
event: [push]
steps:
- name: "ansible_environment_verify"
image: *ansible_image
commands:
- git log -1
- ansible --version
- ansible-lint --version
- name: "ansible_galaxy_requirements"
image: *ansible_image
commands:
- ansible-galaxy install -r requirements.yml
- name: "ansible_lint"
image: *ansible_image
commands:
- ansible-lint --offline
- name: "ansible_playbook_execution"
image: *ansible_image
commands:
- ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK
---
kind: pipeline
type: docker
name: run_ansible_tests_debian11
global-variables:
ansible_image : &ansible_image "gitea.thezengarden.net/podman/ansible-dev/debian11:release-34"
ansible_inventory : &ansible_inventory "-i 127.0.0.1, --connection=local"
ansible_playbook : &ansible_playbook "baseos.yml"
environment:
ANSIBLE_INVENTORY : *ansible_inventory
ANSIBLE_PLAYBOOK : *ansible_playbook
trigger:
branch:
exclude:
- main
event: [push]
steps:
- name: "ansible_environment_verify"
image: *ansible_image
commands:
- git log -1
- ansible --version
- ansible-lint --version
- name: "ansible_galaxy_requirements"
image: *ansible_image
commands:
- ansible-galaxy install -r requirements.yml
- name: "ansible_lint"
image: *ansible_image
commands:
- ansible-lint --offline
- name: "ansible_playbook_execution"
image: *ansible_image
commands:
- ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK
---
kind: pipeline
type: docker
name: run_ansible_tests_debian12
global-variables:
ansible_image : &ansible_image "gitea.thezengarden.net/podman/ansible-dev/debian12:release-34"
ansible_inventory : &ansible_inventory "-i 127.0.0.1, --connection=local"
ansible_playbook : &ansible_playbook "baseos.yml"
environment:
ANSIBLE_INVENTORY : *ansible_inventory
ANSIBLE_PLAYBOOK : *ansible_playbook
trigger:
branch:
exclude:
- main
event: [push]
steps:
- name: "ansible_environment_verify"
image: *ansible_image
commands:
- git log -1
- ansible --version
- ansible-lint --version
- name: "ansible_galaxy_requirements"
image: *ansible_image
commands:
- ansible-galaxy install -r requirements.yml
- name: "ansible_lint"
image: *ansible_image
commands:
- ansible-lint --offline
- name: "ansible_playbook_execution"
image: *ansible_image
commands:
- ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK

4
.gitignore vendored
View File

@ -1,4 +0,0 @@
inventory/*
host_vars
ansible.cfg
collections/ansible_collections/

25
ansible.cfg Normal file
View File

@ -0,0 +1,25 @@
[defaults]
inventory = inventory/hosts
roles_path = /etc/ansible/roles
collections_path = /etc/ansible/collections
remote_tmp = /tmp/.ansible-${USER}/tmp
gathering = smart
gather_timeout = 600
fact_caching = jsonfile
fact_caching_connection = /etc/ansible/facts
fact_caching_timeout = 300
retry_files_enabled = False
forks = 40
timeout = 30
host_key_checking = False
display_skipped_hosts = False
bin_ansible_callbacks = True
callback_whitelist = ansible.posix.profile_tasks, ansible.posix.timer
deprecation_warnings = False
command_warnings = False
[ssh_connection]
pipelining = True
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o PreferredAuthentications=publickey

View File

@ -1,8 +1,12 @@
--- ---
- name: Deploy a standardized base configuration - name: Provisions hosts using the jchristianh.baseos Ansible collection
hosts: all hosts: all
become: true become: yes
gather_facts: true gather_facts: yes
collections:
- jchristianh.baseos
vars_files: vars_files:
@ -11,9 +15,9 @@
tasks: tasks:
- name: Include relevant role(s) - name: Include relevant role(s)
ansible.builtin.include_role: include_role:
name: "{{ item }}" name: "{{ item }}"
loop: "{{ __baseos_include_roles }}" loop: "{{ baseos_include_roles }}"
... ...

View File

@ -1,14 +1,6 @@
--- ---
collections: collections:
# Our Collections
- name: jchristianh.basos - name: jchristianh.basos
source: https://github.com/jchristianh-ansible-collections/baseos.git source: https://github.com/jchristianh-ansible-collections/baseos.git
type: git type: git
version: main version: main
# External Collections
- name: community.general
- name: ansible.posix
...

2
inventory/hosts Normal file
View File

@ -0,0 +1,2 @@
debian-test ansible_host=10.1.1.41
centos-test ansible_host=10.1.1.27 ansible_user=root

View File

@ -1,13 +1,9 @@
--- ---
__baseos_include_roles: baseos_include_roles:
- jchristianh.baseos.resolv_conf - etc_hosts
- jchristianh.baseos.hostname - base_packages
- jchristianh.baseos.etc_hosts - resolv_conf
- jchristianh.baseos.bashrc - update_all_packages
- jchristianh.baseos.motd
- jchristianh.baseos.update_all_packages
- jchristianh.baseos.base_packages
- jchristianh.baseos.snmpd_conf
... ...