Skip to content

Instantly share code, notes, and snippets.

@dch
Last active September 25, 2018 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dch/2fd1bc21829fbac5302a1dc0707d0535 to your computer and use it in GitHub Desktop.
Save dch/2fd1bc21829fbac5302a1dc0707d0535 to your computer and use it in GitHub Desktop.
minimal single-file ansible playbook for FreeBSD
---
# a minimal FreeBSD oriented ansible playbook
# you can run this as follows:
# ansible-playbook quick.yml -i localhost, -v
# note the trailing , necessary to skip needing an inventory file
- hosts: localhost
connection: local
become: yes
vars:
ansible_python_interpreter: /usr/local/bin/python2.7
tasks:
- name: dmesg
command: dmesg
register: dmesg
- name: output
debug:
var: dmesg
verbosity: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment