diff --git a/mgmt/git/push.yml b/mgmt/git/push.yml new file mode 100644 index 0000000..73438ab --- /dev/null +++ b/mgmt/git/push.yml @@ -0,0 +1,25 @@ + +- git_info: + repo: git.intermodi.cc/p3ls/test + register: r + +- set_fact: + line: "{{ '21' | randomstring }}" + +- lineinfile: + dest: "{{ r.dest }}/test.txt" + line: "{{ line }}" + +- git_commit: + repo: git.intermodi.cc/p3ls/test + msg: "{{ line }}" + force_add: true + + +- git_push: + repo: git.intermodi.cc/p3ls/test + + + +# - git_pull: +# repo: git.intermodi.cc/p3ls/test3 \ No newline at end of file diff --git a/test.txt b/test.txt index 2fe2ff1..5d2bdff 100644 --- a/test.txt +++ b/test.txt @@ -8,4 +8,5 @@ ZQUxfsAUtp4CALo8TerWc f9AtmUyoV5Q8unSHXG2Oy PBckEHALIQ5RgwJmux3f9 yBYbkYDbeq3rhy7uu0t0d -w6OsGzKS5onYTLIcZdUU0 \ No newline at end of file +w6OsGzKS5onYTLIcZdUU0 +4wnHjLUfKnNG9mgmAbD66 \ No newline at end of file