initial project commit
This commit is contained in:
commit
8b522e0af0
25
ansible.cfg
Normal file
25
ansible.cfg
Normal 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
23
baseos.yml
Normal 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 }}"
|
||||
|
||||
|
||||
...
|
6
collections/requirements.yml
Normal file
6
collections/requirements.yml
Normal 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
2
inventory/hosts
Normal 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
9
vars/baseos_vars.yml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
baseos_include_roles:
|
||||
- etc_hosts
|
||||
- base_packages
|
||||
- resolv_conf
|
||||
- update_all_packages
|
||||
|
||||
|
||||
...
|
Loading…
x
Reference in New Issue
Block a user