From 071d2a628be692d7cc2e6e1b0d51409bd1dfd34b Mon Sep 17 00:00:00 2001 From: Jens Heinitz Date: Thu, 10 Jun 2021 15:54:09 +0200 Subject: [PATCH] added playbooks from jens/Test1 and jens/Test2 repo --- playbooks/abc.yml | 13 +++++++++++++ playbooks/jens.yml | 8 ++++++++ playbooks/langer.yml | 8 ++++++++ playbooks/test_file.yml | 15 +++++++++++++++ playbooks/xyz.yml | 12 ++++++++++++ 5 files changed, 56 insertions(+) create mode 100644 playbooks/abc.yml create mode 100644 playbooks/jens.yml create mode 100644 playbooks/langer.yml create mode 100644 playbooks/test_file.yml create mode 100644 playbooks/xyz.yml diff --git a/playbooks/abc.yml b/playbooks/abc.yml new file mode 100644 index 0000000..1555677 --- /dev/null +++ b/playbooks/abc.yml @@ -0,0 +1,13 @@ +--- +- name: Moin, Moin Leude! + hosts: all + tasks: + - name: copy file + copy: + src: test.txt + dest: /tmp/test_file_2_{{ ansible_hostname }}.txt + mode: "0644" + owner: pi + group: users + backup: true +... diff --git a/playbooks/jens.yml b/playbooks/jens.yml new file mode 100644 index 0000000..95165ef --- /dev/null +++ b/playbooks/jens.yml @@ -0,0 +1,8 @@ +--- +- name: Sample playbook jens.yml + hosts: all + tasks: + - name: debug + debug: + msg: "Hello World" +... diff --git a/playbooks/langer.yml b/playbooks/langer.yml new file mode 100644 index 0000000..95165ef --- /dev/null +++ b/playbooks/langer.yml @@ -0,0 +1,8 @@ +--- +- name: Sample playbook jens.yml + hosts: all + tasks: + - name: debug + debug: + msg: "Hello World" +... diff --git a/playbooks/test_file.yml b/playbooks/test_file.yml new file mode 100644 index 0000000..3079714 --- /dev/null +++ b/playbooks/test_file.yml @@ -0,0 +1,15 @@ +--- +- name: Moin Hello World - from git + hosts: all + tasks: + - name: Moin Hello Message + debug: + msg: "Moin! Hello World!" + - name: Copy File + copy: + src: test.txt + dest: /tmp/test_{{ ansible_hostname }}.txt + mode: "0644" + owner: pi + group: users +... diff --git a/playbooks/xyz.yml b/playbooks/xyz.yml new file mode 100644 index 0000000..6f05f65 --- /dev/null +++ b/playbooks/xyz.yml @@ -0,0 +1,12 @@ +--- +- name: Moin, Moin Leude! + hosts: all + tasks: + - name: copy file + copy: + src: test3.txt + dest: /tmp/test_file_3_{{ ansible_hostname }}.txt + mode: "0644" + owner: pi + group: users +...