Skip to content

IaC & CI/CD: Access & secrets

IaC & CI/CD commands for access & secrets (tags: #access #secrets #ssh).

Index
2 items

Ansible: Ping all hosts in an inventory

Safe

Checks SSH connectivity and Python on every host (not ICMP ping).

ansible all -i <inventory> -m ping
What each part does
  1. ansiblerun a single ad-hoc module (no playbook)
  2. allhost pattern: every host in the inventory
  3. -i <inventory>inventory file or directory
  4. -m pingthe ping module: checks SSH login + Python on the host (not ICMP); success prints pong

Also known as: UNREACHABLE · ansible ping

Ansible: Edit an encrypted vault file

Safe

Decrypts into $EDITOR and re-encrypts on save.

ansible-vault edit <file>
What each part does
  1. ansible-vault editdecrypt to a temp file, open it in $EDITOR, re-encrypt on save
  2. <file>the vault-encrypted file; asks for the vault password (or use --vault-password-file)

Also known as: ansible vault · vault password

My DevOps Playbook by Angelo John Calleja

New runbook

GitHub not connected

Saving is handled by the site: the GitHub token is stored in Cloudflare, not in your browser. Enter the editor password (the EDITOR_PASSWORD secret) to unlock saving in this browser.

Saving commits to gelogrammer/My_DevOps_Playbook. Create a fine-grained token with access to only this repo andContents: Read and write, then paste it here. It is stored only in this browser.

src/content/docs/…