Skip to content

Instantly share code, notes, and snippets.

@dch dch/minimal.yml
Last active Sep 25, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.