feat(ansible): add minimal doc-rpc sol bootstrap playbook

This commit is contained in:
u1
2026-02-06 22:55:38 +01:00
commit d68232e852
4 changed files with 61 additions and 0 deletions

9
ansible/ansible.cfg Normal file
View File

@@ -0,0 +1,9 @@
[defaults]
inventory = inventory/hosts.ini
host_key_checking = False
stdout_callback = yaml
interpreter_python = auto_silent
retry_files_enabled = False
[ssh_connection]
pipelining = True

View File

@@ -0,0 +1,2 @@
[sol_rpc]
mevnode ansible_host=mevnode ansible_user=root

View File

@@ -0,0 +1,27 @@
---
- name: Minimal check for doc/rpc Sol host
hosts: sol_rpc
gather_facts: true
become: false
tasks:
- name: Validate Ansible transport
ansible.builtin.ping:
- name: Show host basics
ansible.builtin.debug:
msg:
- "inventory_hostname={{ inventory_hostname }}"
- "ansible_host={{ ansible_host | default('n/a') }}"
- "hostname={{ ansible_facts['hostname'] | default('n/a') }}"
- "os_family={{ ansible_facts['os_family'] | default('n/a') }}"
- "kernel={{ ansible_facts['kernel'] | default('n/a') }}"
- name: Read uptime
ansible.builtin.command: uptime
register: uptime_cmd
changed_when: false
- name: Print uptime
ansible.builtin.debug:
var: uptime_cmd.stdout