Skip to content

Ansible playbook that displays the lsblk command during gathering facts stage

Notifications You must be signed in to change notification settings

timflannagan/LSBLK-facts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

  • This is a simple Ansible playbook that installs a custom fact into a controlled host.
  • The site.yml file checks whether the /etc/ansible/facts.d directory exists, then creates the *.facts on the specified hosts
  • The playbook doesn't actually execute the lsblk custom fact, but will present it during the loading process

Commands

  • $ ansible-playbook -i hosts site.yml --ask-sudo-pass
  • $ ansible -m setup localhost "filter=ansible_local" or
  • $ ansible -m setup localhost | grep ansible_local

About

Ansible playbook that displays the lsblk command during gathering facts stage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages