1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/usr/bin/ansible-playbook --- - hosts: localhost gather_facts: no tasks: - yedit: src: /home/kwoodson/git/openshift-ansible/roles/lib_yaml_editor/build/test/foo.yml key: foo value: barplus state: present register: output - debug: msg: "{{ output }}"