User Tools

Site Tools


unix:automation

Unix Automation

Ansible

Testing playbook fragments

Create a self-contained fragment of playbook test.yml with the rule you want to test. Example:

- hosts: all
  tasks:
  - name: Test test
    command: /bin/true

Run it with the name of the target host, followed by a comma:

ansible-playbook -i host.example.com, test.yml
unix/automation.txt · Last modified: 2016/11/15 12:37 by ap

Informativa sui cookie