initial project commit

This commit is contained in:
Chris Hammer 2022-03-15 12:51:21 -04:00
commit 8b522e0af0
5 changed files with 65 additions and 0 deletions

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

23
baseos.yml Normal file
View File

@ -0,0 +1,23 @@
---
- name: Provisions hosts using the jchristianh.baseos Ansible collection
hosts: all
become: yes
gather_facts: yes
collections:
- jchristianh.baseos
vars_files:
- vars/baseos_vars.yml
tasks:
- name: Include relevant role(s)
include_role:
name: "{{ item }}"
loop: "{{ baseos_include_roles }}"
...

View File

@ -0,0 +1,6 @@
---
collections:
- name: jchristianh.basos
source: https://github.com/jchristianh-ansible-collections/baseos.git
type: git
version: main

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

9
vars/baseos_vars.yml Normal file
View File

@ -0,0 +1,9 @@
---
baseos_include_roles:
- etc_hosts
- base_packages
- resolv_conf
- update_all_packages
...