Last active
September 25, 2018 15:18
-
-
Save dch/2fd1bc21829fbac5302a1dc0707d0535 to your computer and use it in GitHub Desktop.
minimal single-file ansible playbook for FreeBSD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# 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