Compare commits
2 Commits
5cb5b49a68
...
2b72b34911
| Author | SHA1 | Date | |
|---|---|---|---|
| 2b72b34911 | |||
| c6359feed5 |
14
.gitignore
vendored
14
.gitignore
vendored
@@ -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
13
playbooks/test.yml
Normal 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 }})"
|
||||
Reference in New Issue
Block a user