mirror of
https://github.com/jamieahelmke/ansible-quickstart.git
synced 2026-01-02 14:42:11 +01:00
Initial commit
This commit is contained in:
7
ansible/ansible.cfg
Normal file
7
ansible/ansible.cfg
Normal file
@@ -0,0 +1,7 @@
|
||||
[defaults]
|
||||
inventory = ./ansible/inventory/hosts.ini
|
||||
roles_path = ./ansible/roles
|
||||
collections_paths = ./ansible/lib/collections
|
||||
host_key_checking = False
|
||||
retry_files_enabled = False
|
||||
stdout_callback = yaml
|
||||
22
ansible/inventory/hosts.yml
Normal file
22
ansible/inventory/hosts.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
# Tips for building inventories
|
||||
# - Ensure that group names are meaningful and unique. Group names are also case sensitive.
|
||||
# - Avoid spaces, hyphens, and preceding numbers (use floor_19, not 19th_floor) in group names.
|
||||
# - Group hosts in your inventory logically according to their What, Where, and When.
|
||||
#
|
||||
# Example inventory
|
||||
#production:
|
||||
# children:
|
||||
# web:
|
||||
# hosts:
|
||||
# web1.example.com:
|
||||
# web2.example.com:
|
||||
# db:
|
||||
# hosts:
|
||||
# db1.example.com:
|
||||
# db2.example.com:
|
||||
|
||||
local:
|
||||
hosts:
|
||||
localhost:
|
||||
ansible_host: localhost
|
||||
ansible_connection: local
|
||||
7
ansible/playbooks/example.yml
Normal file
7
ansible/playbooks/example.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
- name: Example Playbook
|
||||
hosts: local
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Test connection
|
||||
ansible.builtin.ping:
|
||||
Reference in New Issue
Block a user