summaryrefslogtreecommitdiffstats
path: root/roles/lib_yaml_editor/build/test
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2016-03-30 13:43:52 -0400
committerKenny Woodson <kwoodson@redhat.com>2016-03-30 13:43:52 -0400
commit85d1d854297bb49b4baefaf5db821fa0ecb786ae (patch)
tree526025e23f54d997f46f2b872ed0f6791315c474 /roles/lib_yaml_editor/build/test
parent5326629f754899c3a382b6a8a0bf97110b257c68 (diff)
parent15d730f3aec1f579dbd3cc5310264c68eb78e242 (diff)
downloadopenshift-85d1d854297bb49b4baefaf5db821fa0ecb786ae.tar.gz
openshift-85d1d854297bb49b4baefaf5db821fa0ecb786ae.tar.bz2
openshift-85d1d854297bb49b4baefaf5db821fa0ecb786ae.tar.xz
openshift-85d1d854297bb49b4baefaf5db821fa0ecb786ae.zip
Merge pull request #1679 from kwoodson/apirefactor
Refactor of openshiftcli to be more generic.
Diffstat (limited to 'roles/lib_yaml_editor/build/test')
-rw-r--r--roles/lib_yaml_editor/build/test/foo.yml1
-rwxr-xr-xroles/lib_yaml_editor/build/test/test.yaml15
2 files changed, 16 insertions, 0 deletions
diff --git a/roles/lib_yaml_editor/build/test/foo.yml b/roles/lib_yaml_editor/build/test/foo.yml
new file mode 100644
index 000000000..2a7a89ce2
--- /dev/null
+++ b/roles/lib_yaml_editor/build/test/foo.yml
@@ -0,0 +1 @@
+foo: barplus
diff --git a/roles/lib_yaml_editor/build/test/test.yaml b/roles/lib_yaml_editor/build/test/test.yaml
new file mode 100755
index 000000000..ac9c37565
--- /dev/null
+++ b/roles/lib_yaml_editor/build/test/test.yaml
@@ -0,0 +1,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 }}"
+