Compare commits

...

2 Commits

Author SHA1 Message Date
2b72b34911 add test playbook 2025-05-26 16:48:14 -05:00
c6359feed5 update gitignore 2025-05-26 16:48:06 -05:00
2 changed files with 25 additions and 2 deletions

14
.gitignore vendored
View File

@@ -1,3 +1,13 @@
# ---> Ansible
*.retry
# Secrets and sensitive inventory
inventory/*.ini
inventory/host_vars/
inventory/group_vars/*_vault.yml
.vault_pass.txt
# SSH keys
*.pem
id_rsa*
id_ed25519*
# Local config
.ansible.cfg

13
playbooks/test.yml Normal file
View File

@@ -0,0 +1,13 @@
- name: Semaphore connection test
hosts: all
gather_facts: false
become: true
tasks:
- name: Print the hostname
command: hostname
register: result
- name: Show result
debug:
msg: "Connected to {{ inventory_hostname }} (hostname: {{ result.stdout }})"