• Ansible: Test a task by applying it locally

    2 min read

    If you need to test a set of ansible tasks without having to go into much trouble, you can use ansible-playbook to do a quick local test. To do so you just need ansible installed and create a yaml file with the playbook to execute using the following format:

    ---
    - hosts: 127.0.0.1
      tasks:
      - name: mkdir /tmp/test
        command: 
          cmd: mkdir -p /tmp/test
    

    26/01/2021

    Read more...

From pet to cattle
Treat your kubernetes clusters like cattle, not pets
tags related to this category