Skip to content

Instantly share code, notes, and snippets.

View eXpire163's full-sized avatar
⛑️
Making sercurity a part of the solution, not of the problem

Chris eXpire163

⛑️
Making sercurity a part of the solution, not of the problem
View GitHub Profile
@alces
alces / ansible_local_playbooks.md
Last active July 6, 2024 09:49
How to run an Ansible playbook locally
  • using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml
  • using inventory:
127.0.0.1 ansible_connection=local
@halberom
halberom / mail_body.j2
Created September 7, 2017 09:51
ansible - example of using mail module to send one email for all hosts
# templates/mail_body.j2
{% for host in play_hosts %}
The {{ host }} says {{ hostvars[host]['result']['stdout'] }}
{% endfor %}