├── LICENSE ├── README.md ├── doc ├── Makefile.yml ├── list_of_examples.yml ├── make ├── plugins │ └── filter │ │ ├── __pycache__ │ │ ├── parse_examples.cpython-38.pyc │ │ └── parse_examples.cpython-39.pyc │ │ └── parse_examples.py └── templates │ └── README.md.j2 └── examples ├── example-001 ├── NOTES ├── create-pgpass.yml ├── iter-dict-02.yml ├── iter-dict-03.yml ├── pgpass.j2 ├── test-02.j2 └── test-03.j2 ├── example-002 ├── NOTES ├── json_query.yml ├── json_query2.yml ├── json_query3.yml ├── test1.j2 └── test1.txt ├── example-003 ├── NOTES ├── create-vm.yml ├── inner5.yml ├── inner6.yml ├── list-dict.yml ├── list-dict1-task.yml ├── list-dict1.yml ├── list-dict10-task.yml ├── list-dict10.yml ├── list-dict11.yml ├── list-dict12.yml ├── list-dict2.yml ├── list-dict3.yml ├── list-dict4.yml ├── list-dict5.yml ├── list-dict6.yml ├── list-dict7.yml ├── list-dict8.yml ├── list-dict9.yml ├── vars5.yml └── vars7.json ├── example-004 ├── NOTES └── trim-list.yml ├── example-005 ├── NOTES ├── play-01.yml ├── play-02.yml ├── run-in-parallel-rc.yml └── run-in-parallel.yml ├── example-006 ├── NOTES ├── data-4.csv ├── file.conf ├── file1.txt ├── files │ ├── file_a │ └── file_b ├── filter_plugins │ ├── list_methods.py │ └── list_methods.pyc ├── index1.yml ├── index2.yml ├── index3.yml ├── index4.yml ├── lcontrol1.yml ├── templates │ └── jinja.j2 ├── with_sequence.yml ├── with_sequence2.yml ├── with_sequence3.yml ├── with_sequence4.yml └── with_sequence5.yml ├── example-007 ├── NOTES ├── synchronize1.yml ├── synchronize2.yml ├── synchronize3.yml └── synchronize4.yml ├── example-008 ├── commands.yml ├── debug.yml ├── debug2.yml ├── include2.yml ├── include3-task1.yml ├── include3.yml ├── loop-include-2.yml └── loop-include.yml ├── example-009 ├── NOTES ├── gather_facts-001.yml ├── service_facts.yml ├── service_facts_02.yml ├── service_facts_03.yml ├── service_facts_04.yml ├── service_facts_05.yml ├── service_facts_06.yml └── service_facts_07.yml ├── example-010 ├── NOTES └── my_sum.yml ├── example-011 ├── NOTES ├── create_user.yml └── user2.yml ├── example-012 ├── NOTES ├── dir1.yml ├── dir2.yml ├── sel_dir.yml ├── sel_dir2.yml └── sel_items-01.yml ├── example-013 ├── NOTES └── test-block.yml ├── example-014 ├── NOTES ├── delegate-02.yml ├── delegate-03.yml ├── delegate-04.yml ├── delegate-05.yml ├── delegate-06.yml ├── delegate-07.yml ├── delegate-08.yml ├── delegate-09.yml ├── delegate-10.yml ├── delegate-11.yml ├── delegate-12.yml ├── delegate-13.yml ├── delegate.yml ├── task2.yml ├── task3.yml ├── task4.yml ├── task5.yml └── task6.yml ├── example-015 ├── NOTES ├── foo │ └── foo.yml ├── group_vars │ └── all │ │ └── dirs.yml ├── import_play.yml ├── pb-list.txt ├── play-11.yml ├── play-disable-root.yml ├── play1.yml ├── play10.yml ├── play12.yml ├── play2.yml ├── play6.yml ├── play7.yml ├── play8.yml ├── play9.yml ├── playbook.yml ├── playbook12.yml ├── vmware-control.yml ├── vmware-create.yml └── vmware-destroy.yml ├── example-016 ├── NOTES ├── group_by.yml ├── group_by1.yml ├── hosts1 ├── hosts2 ├── map-extract.yml ├── map-extract2.yml ├── map-extract3.yml ├── map-regex1.yml ├── map-replace.yml └── test-remote.yml ├── example-017 ├── NOTES ├── hosts-01.yml └── magic-vars.yml ├── example-018 ├── NOTES ├── play1.yml ├── play10.yml ├── play11.yml ├── play12.yml ├── play13.yml ├── play14.yml ├── play2.yml ├── play3.yml ├── play4.yml ├── play5.yml ├── play6.yml ├── play7.yml ├── play8.yml ├── play9.yml ├── roles │ ├── deploy_back │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ └── main.yml │ ├── deploy_front │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ └── main.yml │ ├── role-one │ │ ├── defaults │ │ │ └── main.yml │ │ └── tasks │ │ │ ├── main.yml │ │ │ └── noop.yml │ ├── role-two │ │ └── tasks │ │ │ └── main.yml │ ├── role1 │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ └── main.yml │ ├── role10 │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ └── main.yml │ ├── role14 │ │ └── tasks │ │ │ ├── fst-openshot.yml │ │ │ ├── tasks-01.yml │ │ │ ├── tasks-02.yml │ │ │ ├── tasks-03.yml │ │ │ ├── tasks-04.yml │ │ │ ├── tasks-05.yml │ │ │ ├── tasks-06.yml │ │ │ ├── tasks-07.yml │ │ │ ├── tasks-08.yml │ │ │ ├── tasks-09.yml │ │ │ └── tasks-10.yml │ ├── role2 │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ ├── main.yml │ │ │ ├── task1.yml │ │ │ └── task2.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ └── main.yml │ ├── role3 │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ └── main.yml │ ├── role4 │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ └── main.yml │ ├── role5 │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ └── main.yml │ ├── role6 │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ └── main.yml │ └── role8 │ │ ├── README.md │ │ ├── defaults │ │ └── main.yml │ │ ├── handlers │ │ └── main.yml │ │ ├── meta │ │ └── main.yml │ │ ├── tasks │ │ └── main.yml │ │ ├── tests │ │ ├── inventory │ │ └── test.yml │ │ └── vars │ │ └── main.yml └── test8.yml ├── example-019 ├── NOTES ├── play1.yml ├── play2.yml ├── play3.yml └── play4.yml ├── example-020 ├── NOTES ├── data-151.json ├── json_query-02.yml ├── json_query-03.yml ├── json_query-04.yml ├── json_query-05.yml ├── json_query-06.yml ├── json_query-07.yml ├── json_query-08.yml ├── json_query-09.yml ├── json_query-10.yml ├── json_query-11.yml ├── json_query-12.yml ├── json_query-13.yml ├── json_query-14.yml ├── json_query-15.yml ├── json_query-16.yml ├── json_query-17.yml ├── json_query-18.yml ├── json_query-19.yml ├── json_query-20.yml ├── json_query-21.yml ├── json_query-22.yml ├── json_query-23.yml ├── json_query-24.yml ├── json_query-25.yml ├── json_query-26.yml ├── json_query-27.yml ├── json_query-28.yml ├── json_query-29.yml ├── json_query-30.yml ├── json_query-31.yml ├── json_query-32.yml ├── json_query-33.yml ├── json_query-34.yml ├── json_query-35.yml ├── json_query-36.yml ├── json_query-37.yml ├── json_query-37b.yml ├── json_query-38.yml ├── json_query-38b.yml ├── json_query-38c.yml ├── json_query-39.yml ├── json_query-40.yml ├── json_query-41.yml ├── json_query-42.yml ├── json_query.yml ├── loop-url.yml ├── query-22.yml ├── test-151.yml ├── vars-1.json ├── vars-11.json ├── vars-12.json ├── vars-13.json ├── vars-14.json ├── vars-15.json ├── vars-16.json ├── vars-17.json ├── vars-19.json ├── vars-20.json ├── vars-21.yml ├── vars-27.json ├── vars-28.json ├── vars-29.json ├── vars-30.json ├── vars-35.json ├── vars-37.json ├── vars-38.json ├── vars-4.yml ├── vars-40.yml ├── vars-41.json ├── vars-42.yml ├── vars-6.json ├── vars-7.json ├── vars-8.yml └── vars-9.json ├── example-021 ├── NOTES ├── split_test.yml ├── split_test2.yml ├── split_test3.yml ├── split_test4.yml ├── split_test5.yml ├── split_test6.yml ├── split_test7.yml ├── split_test8.yml ├── split_test_list.yml └── splitext_test.yml ├── example-022 ├── NOTES ├── dynamic_array_var.yml ├── dynamic_var1.yml └── dynamic_var2.yml ├── example-023 └── block_names.yml ├── example-024 ├── NOTES ├── UserDetails.json ├── group_vars │ ├── all.yml │ └── web.yml ├── include_role.yml ├── include_vars_1.yml ├── include_vars_2.yml ├── include_vars_3.yml ├── play.yml ├── play1.yml ├── play10.yml ├── play2.yml ├── play3.yml ├── play4.yml ├── play5.yml ├── play6.yml ├── play7.yml ├── play8.yml ├── play9.yml ├── roles │ ├── my_role │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ ├── id_1 │ │ │ ├── id_2 │ │ │ └── main.yml │ ├── my_role1 │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ ├── id_1 │ │ │ ├── id_2 │ │ │ └── main.yml │ ├── my_role10 │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ └── tests │ │ │ ├── inventory │ │ │ └── test.yml │ ├── my_role2 │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ ├── id_1 │ │ │ ├── id_2 │ │ │ └── main.yml │ ├── my_role3 │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ ├── main.yml │ │ │ ├── task1.yml │ │ │ ├── task2.yml │ │ │ └── task3.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ ├── id_1 │ │ │ ├── id_2 │ │ │ └── main.yml │ ├── my_role4 │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ ├── id_1 │ │ │ ├── id_2 │ │ │ └── main.yml │ ├── my_role5 │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ ├── id_1 │ │ │ ├── id_2 │ │ │ └── main.yml │ ├── my_role6 │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ ├── id_1 │ │ │ ├── id_2 │ │ │ └── main.yml │ ├── my_role7 │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ ├── main.yml │ │ │ ├── task1.yml │ │ │ └── vars.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ └── Debian │ ├── my_role8 │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ └── tests │ │ │ ├── inventory │ │ │ └── test.yml │ └── my_role9 │ │ ├── README.md │ │ ├── defaults │ │ └── main.yml │ │ ├── handlers │ │ └── main.yml │ │ ├── meta │ │ └── main.yml │ │ ├── tasks │ │ └── main.yml │ │ └── tests │ │ ├── inventory │ │ └── test.yml └── vars │ ├── common.yml │ └── web.yml ├── example-025 ├── NOTES └── parted.yml ├── example-026 ├── NOTES ├── group_vars │ └── netplan │ │ └── netplan.yml ├── netplan.yml ├── play1.yml ├── play2-data.yml ├── play2.yml ├── play3.yml └── play4.yml ├── example-027 ├── NOTES ├── dyn-inventory.sh ├── inventory-list.sh ├── inventory.py ├── inventory.sh └── test1.yml ├── example-028 ├── NOTES ├── addhost-01.yml ├── addhost-02.yml ├── addhost-03.yml ├── group-01.yml ├── group-02.yml ├── group-03.yml ├── group_vars │ └── all ├── host_vars │ ├── 10.1.0.52 │ │ └── vars │ ├── all │ └── test_01 │ │ └── vars ├── list-ansible_facts.yml ├── list-vars.yml ├── test-01.yml ├── test-01a.yml ├── test-01b.yml ├── test-01c.yml ├── test-01d.yml ├── test-02.yml ├── test-03.yml ├── test-04.yml ├── test-05.yml ├── test-06.yml ├── test-07.yml ├── test-08.yml ├── test-09.yml ├── test-10.yml ├── test-11.yml ├── test-12.yml ├── test-13.yml ├── test-14.yml ├── test-15.yml ├── test-16.yml ├── test-17.yml ├── test.yml ├── top.yml └── topmost.yml ├── example-029 ├── NOTES ├── play.yml └── roles │ └── my_role │ ├── tasks │ ├── main.yml │ └── vars.yml │ └── vars │ ├── Debian.yml │ ├── Ubuntu-bionic.yml │ ├── Ubuntu.yml │ └── default.yml ├── example-030 ├── NOTES ├── absent1.yml ├── play.yml ├── play2.yml └── script.sh ├── example-031 ├── NOTES ├── debug1.yml ├── hosts-all.yml ├── list-config.yml ├── list-groups.yml └── pid.yml ├── example-032 ├── NOTES ├── test-combine-01.yml ├── test-default-01.yml ├── test-difference-01.yml ├── test-inlist-01.yml ├── test-product.yml └── test-ternary-01.yml ├── example-033 ├── NOTES ├── allowed_hosts.yml ├── extra_vars-02.yml ├── extra_vars.yml ├── group_vars │ ├── group2 │ └── maingroup ├── play-05.yml ├── play-06.yml ├── plays-01.yml ├── plays-02.yml ├── plays-03.yml ├── plays-04.yml └── roles │ ├── role_1a │ ├── .travis.yml │ ├── README.md │ ├── defaults │ │ └── main.yml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ └── main.yml │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ └── main.yml │ ├── role_1b │ ├── .travis.yml │ ├── README.md │ ├── defaults │ │ └── main.yml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ └── main.yml │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ └── main.yml │ ├── role_2 │ ├── .travis.yml │ ├── README.md │ ├── defaults │ │ └── main.yml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ └── main.yml │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ └── main.yml │ ├── role_3 │ ├── .travis.yml │ ├── README.md │ ├── defaults │ │ └── main.yml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ └── main.yml │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ └── main.yml │ ├── role_4 │ ├── .travis.yml │ ├── README.md │ ├── defaults │ │ └── main.yml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ └── main.yml │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ └── main.yml │ ├── role_5 │ ├── .travis.yml │ ├── README.md │ ├── defaults │ │ └── main.yml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ └── main.yml │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ └── main.yml │ └── role_6 │ ├── .travis.yml │ ├── README.md │ ├── defaults │ └── main.yml │ ├── handlers │ └── main.yml │ ├── meta │ └── main.yml │ ├── tasks │ └── main.yml │ ├── tests │ ├── inventory │ └── test.yml │ └── vars │ ├── defaults │ └── bsd.yml │ └── main.yml ├── example-034 ├── NOTES └── get-passwd-01.yml ├── example-035 ├── NOTES ├── command1.yml ├── command2.yml ├── create-dirs.yml ├── create-plugin.yml └── files │ └── test1.sh ├── example-036 ├── NOTES ├── pause1.yml ├── pause2.yml ├── pause3.yml ├── pause4.yml ├── roles │ └── hostname │ │ ├── README.md │ │ ├── defaults │ │ └── main.yml │ │ ├── handlers │ │ └── main.yml │ │ ├── meta │ │ └── main.yml │ │ ├── tasks │ │ └── main.yml │ │ ├── tests │ │ ├── inventory │ │ └── test.yml │ │ └── vars │ │ ├── id_1 │ │ ├── id_2 │ │ └── main.yml ├── vars_prompt.yml ├── vars_prompt2.yml ├── vars_prompt3.yml ├── vars_prompt4.yml ├── vars_prompt5.yml ├── vars_prompt6.yml ├── vars_prompt7.yml ├── vars_prompt8.yml └── vars_prompt9.yml ├── example-037 ├── NOTES ├── dir1 │ ├── 1 │ ├── 2 │ ├── 3 │ ├── 4 │ ├── 5 │ ├── 6 │ └── 7 ├── file_tasks.yml ├── find-01.yml ├── find-02.yml ├── find-03-task.yml ├── find-03.yml ├── find-04.yml ├── find-05.yml ├── find-06.yml ├── find-07.yml ├── find-08.yml ├── find-09.yml ├── find-10.yml ├── find-11.yml ├── find-12.yml ├── find-13.yml ├── find-14.yml ├── find-15.yml ├── find_and_execute.yml ├── log │ ├── service1.log │ ├── service2.log │ └── service3.log └── timestamp.j2 ├── example-038 ├── NOTES ├── list-01.yml ├── list-02.yml ├── list-03-data.json ├── list-03.yml ├── string-01.yml └── string-02.yml ├── example-039 ├── DL_PERCENTAGE ├── NOTES ├── cert1 ├── filter_plugins │ ├── file_filters.py │ └── file_filters.pyc ├── lookup-01.yml ├── lookup-02.yml ├── lookup-03.yml ├── lookup-04.yml ├── lookup-05.yml ├── lookup-06.yml ├── lookup-07.yml ├── lookup-08.yml ├── lookup-09.yml ├── lookup-10.yml ├── lookup-11.yml ├── lookup-12.yml ├── lookup-13.yml ├── lookup-bug.yml ├── plugins │ ├── plugin-1 │ ├── plugin-2 │ └── plugin-3 ├── template-02.j2 └── template-09.j2 ├── example-040 ├── NOTES ├── data-09.json ├── data-11.yml ├── data-12.json ├── data-16.yml ├── data-template-01.yml ├── data1.yml ├── data2.yml ├── subelement-loop-01.yml ├── subelement-loop-02.yml ├── subelement-loop-03.yml ├── subelement-loop-04.yml ├── subelement-loop-05.yml ├── subelement-loop-06-task.yml ├── subelement-loop-06.yml ├── subelement-loop-07.yml ├── subelement-loop-08.yml ├── subelement-loop-09.yml ├── subelement-loop-10.yml ├── subelement-loop-11.yml ├── subelement-loop-12.yml ├── subelement-loop-13.yml ├── subelement-loop-14.yml ├── subelement-loop-15.yml ├── subelement-loop-16.yml ├── subelement-nested-01.yml ├── subelement-template-01.yml └── template-01.j2 ├── example-041 ├── NOTES ├── map-01.yml ├── map-02.yml ├── map-03.yml ├── map-04.yml ├── map-05.yml └── map-06.yml ├── example-042 ├── NOTES └── zfs_facts-01.yml ├── example-043 ├── NOTES └── contains-01.yml ├── example-044 ├── NOTES └── xenserver_facts-01.yml ├── example-045 ├── NOTES ├── playbook.yml └── roles │ └── test │ ├── README.md │ ├── defaults │ └── main.yml │ ├── handlers │ └── main.yml │ ├── meta │ └── main.yml │ ├── tasks │ └── main.yml │ ├── templates │ ├── template1.j2 │ └── template2.j2 │ ├── tests │ ├── inventory │ └── test.yml │ └── vars │ └── main.yml ├── example-046 ├── NOTES ├── playbook.yml ├── roles │ └── role1 │ │ ├── .travis.yml │ │ ├── README.md │ │ ├── defaults │ │ └── main.yml │ │ ├── handlers │ │ └── main.yml │ │ ├── meta │ │ └── main.yml │ │ ├── tasks │ │ └── main.yml │ │ ├── tests │ │ ├── inventory │ │ └── test.yml │ │ └── vars │ │ └── main.yml ├── runonce-01.yml └── runonce-02.yml ├── example-047 ├── NOTES └── playbook.yml ├── example-048 ├── NOTES ├── getent-01.yml ├── getent-02.yml ├── getent-03.yml ├── getent-04.yml ├── getent-05.j2 ├── getent-05.yml ├── getent-06.yml ├── getent-07.yml ├── playbook.yml ├── uid.csv └── uid.csv.j2 ├── example-049 ├── NOTES ├── group_vars │ └── all.yml ├── playbook.yml ├── playbook2.yml ├── playbook3.yml ├── playbook4.yml └── roles │ ├── test │ ├── README.md │ ├── defaults │ │ └── main.yml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ ├── main.yml │ │ └── vars.yml │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ ├── default.yml │ │ ├── default │ │ └── default.yml │ │ └── main.yml │ ├── test2 │ ├── README.md │ ├── defaults │ │ └── main.yml │ ├── files │ │ └── inc_vars_1.yaml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ └── main.yml │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ ├── default.yml │ │ ├── default │ │ └── default.yml │ │ └── main.yml │ └── variables │ ├── .travis.yml │ ├── README.md │ ├── defaults │ └── main.yml │ ├── handlers │ └── main.yml │ ├── meta │ └── main.yml │ ├── tasks │ ├── main.yml │ └── precedence.yml │ ├── tests │ ├── inventory │ └── test.yml │ └── vars │ └── main.yml ├── example-050 ├── NOTES ├── import_play.yml ├── include_play.yml ├── include_playbooks.yml ├── play1.yml ├── play2.yml ├── play3.yml ├── play4.yml ├── playbook1.yml ├── playbook2.yml └── test.yml ├── example-051 ├── NOTES ├── test-uri-2.yml └── test-uri.yml ├── example-052 ├── NOTES ├── block-01.yml ├── block-02.yml ├── block-02b.yml ├── block-02c.yml ├── block-03.yml ├── block-04.yml ├── block-05.yml ├── block-06.yml ├── block-07.yml ├── check1.yml ├── check2.yml ├── check3.yml ├── loop1.yml ├── roles │ ├── test-01 │ │ └── tasks │ │ │ ├── main.yml │ │ │ └── tasks-always.yml │ └── test │ │ ├── README.md │ │ ├── defaults │ │ └── main.yml │ │ ├── handlers │ │ └── main.yml │ │ ├── meta │ │ └── main.yml │ │ ├── tasks │ │ └── main.yml │ │ ├── tests │ │ ├── inventory │ │ └── test.yml │ │ └── vars │ │ └── main.yml ├── tasks-always.yml ├── test.yml └── test_fail.yml ├── example-053 ├── dummy_vault_passwd.j2 ├── group_vars │ ├── routers │ └── servers │ │ └── my_vault.yml ├── host_vars │ └── test_01 │ │ └── foo.yml ├── my_vault_passwd ├── my_vault_passwd.j2 ├── test.yml ├── test1.yml ├── test3.yml ├── test4.yml ├── test5.yml ├── test6.yml ├── vault1.yml ├── vault1.yml.plaintext ├── vault2.yml ├── vault2.yml.plaintext ├── vault3.yml └── vault3.yml.plaintext ├── example-054 ├── netsted-01.yml └── repo-paths.yml ├── example-055 ├── create-ramlist.yml ├── service_1.yml ├── service_2.yml ├── test1.yml ├── test2.yml ├── test3.yml └── test4.yml ├── example-056 ├── passwords.yml ├── test1.yml ├── test2.yml ├── userlist.yml └── zip3.yml ├── example-057 ├── NOTE ├── hosts-1 └── test1.yml ├── example-058 ├── NOTE ├── hosts-1 └── test1.yml ├── example-059 ├── NOTES ├── test1.yml ├── test2.yml ├── test3.yml ├── test4.yml └── test5.yml ├── example-060 ├── NOTES ├── output.json ├── output.yml ├── output2.json ├── test1.yml ├── test2.sh ├── test2.yml └── test2b.sh ├── example-061 ├── NOTES └── test1.yml ├── example-062 ├── NOTES ├── template.j2 ├── test1.yml ├── test2.yml └── test3.yml ├── example-063 ├── IDs.txt ├── NOTES ├── loop-devices.yml ├── template.j2 ├── test-063-data.yml ├── test1.yml ├── together-02.yml ├── uri-put.yml ├── zip-01.yml ├── zip-02.yml ├── zip-03.yml ├── zip-04.yml ├── zip-05.yml ├── zip-06.yml ├── zip-07.yml └── zip-08.yml ├── example-064 ├── NOTES ├── case-01 │ ├── common.yml │ ├── group_vars │ │ ├── all │ │ └── oracle │ └── roles │ │ └── ansible-users │ │ ├── README.md │ │ ├── defaults │ │ └── main.yml │ │ ├── handlers │ │ └── main.yml │ │ ├── meta │ │ └── main.yml │ │ ├── tasks │ │ └── main.yml │ │ ├── tests │ │ ├── inventory │ │ └── test.yml │ │ └── vars │ │ └── main.yml ├── group_vars ├── group_vars.0 │ └── server_group2 │ │ ├── app1 │ │ └── app2 ├── group_vars.12a │ └── all.yml ├── group_vars.12b │ ├── all │ │ └── vars.yml │ └── group1 │ │ └── vars.yml ├── group_vars.8 │ ├── all.yml │ └── oracle.yml ├── group_vars.OK │ ├── all.yml │ ├── all │ │ └── main.yml │ ├── db.yml │ ├── eu │ │ └── main.yml │ ├── group1.yml │ ├── linux.yml │ ├── manager.yml │ ├── test1 │ │ └── varfile.yml │ ├── test2 │ │ └── varfile.yml │ ├── test_jails.yml │ ├── webserver.yml │ ├── windows.yml │ └── worker.yml ├── groups5.yml ├── hosts1 ├── inventory │ ├── group_vars │ │ ├── all.yml │ │ └── oracle.yml │ ├── oracle │ └── other ├── test1.yml ├── test10.yml ├── test11.yml ├── test12.yml ├── test2.yml ├── test3.yml ├── test4.yml ├── test5.yml ├── test6.yml ├── test7.yml ├── test8.yml └── test9.yml ├── example-065 ├── NOTES ├── roles │ ├── test1 │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ ├── main.yml │ │ │ ├── os_vars_playbook_dir.yml │ │ │ └── os_vars_role_path.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ ├── defaults │ │ │ └── default.yml │ │ │ └── main.yml │ ├── test2 │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ ├── defaults │ │ │ ├── FreeBSD.yml │ │ │ ├── Ubuntu.yml │ │ │ └── default.yml │ │ │ └── main.yml │ └── test3 │ │ ├── .travis.yml │ │ ├── README.md │ │ ├── defaults │ │ └── main.yml │ │ ├── handlers │ │ └── main.yml │ │ ├── meta │ │ └── main.yml │ │ ├── tasks │ │ └── main.yml │ │ ├── tests │ │ ├── inventory │ │ └── test.yml │ │ └── vars │ │ └── main.yml ├── test-include_os_vars_path-01.yml ├── test-include_os_vars_playbook_dir-01.yml ├── test-mdconfig-01.yml ├── test-mdconfig-02.yml ├── test-sanity_platform-01.yml ├── test-sanity_platform-02.yml └── vars │ ├── defaults │ ├── FreeBSD.yml │ ├── Ubuntu.yml │ └── default.yml │ └── main.yml ├── example-066 ├── NOTES ├── conf.d.orig │ └── test4.yml ├── conf.d │ ├── test1.yml │ ├── test2.yml │ ├── test3.yml │ └── test4.yml ├── conf.d2 │ ├── test1.yml │ ├── test2.yml │ ├── test3.yml │ └── test4.yml ├── fn │ └── create_list.yml ├── test-al_include_confd_vars_list.yml ├── test-include_dir.yml ├── test-include_dir2.yml ├── test.bash └── vars │ └── main.yml ├── example-067 ├── NOTES ├── test1.yml ├── test2.yml └── test3.yml ├── example-068 ├── NOTES ├── select-in.yml ├── select1.yml ├── select5.yml ├── select6.yml ├── test1.yml ├── test2.yml ├── test3.yml ├── test4-data.json ├── test4.yml └── vars-3.json ├── example-069 ├── NOTES ├── in-01.yml ├── test-110-data.yml ├── test-110.yml └── test-110a-data.yml ├── example-070 ├── NOTES ├── fibonacci.yml └── test1.yml ├── example-071 ├── NOTES ├── group_vars │ ├── subgrp1 │ │ └── main.yml │ └── subgrp2 │ │ └── main.yml ├── test1.yml └── test2.yml ├── example-072 ├── NOTES ├── readvar.sh ├── readvar2.sh ├── test1.yml ├── test2.yml ├── test3.yml └── test4.yml ├── example-073 ├── NOTES ├── test1.yml ├── test2.yml └── test3.yml ├── example-074 ├── NOTES └── test1.yml ├── example-075 ├── NOTES ├── filedet.yml ├── php.ini ├── roles │ └── test14 │ │ ├── .travis.yml │ │ ├── README.md │ │ ├── defaults │ │ └── main.yml │ │ ├── handlers │ │ └── main.yml │ │ ├── meta │ │ └── main.yml │ │ ├── tasks │ │ └── main.yml │ │ ├── templates │ │ └── DIR1 │ │ │ └── PATH1 │ │ │ └── file1 │ │ ├── tests │ │ ├── inventory │ │ └── test.yml │ │ └── vars │ │ └── main.yml ├── template-18a.j2 ├── template-18b.j2 ├── template-18c.j2 ├── templates │ └── php.ini-production ├── test.j2 ├── test1.yml ├── test10.j2 ├── test10.json ├── test10.yml ├── test11.j2 ├── test11.yml ├── test12.j2 ├── test12.yml ├── test13.j2 ├── test13.yml ├── test14.yml ├── test15.j2 ├── test15.txt ├── test15.yml ├── test16.j2 ├── test16.txt ├── test16.yml ├── test17.j2 ├── test17.txt ├── test17.yml ├── test18.j2 ├── test18.txt ├── test18.yml ├── test19-include.j2 ├── test19.j2 ├── test19.txt ├── test19.yml ├── test2.j2 ├── test2.yml ├── test20.j2 ├── test20.txt ├── test20.yml ├── test21.yml ├── test3.j2 ├── test3.yml ├── test3b.j2 ├── test4.j2 ├── test4.yml ├── test5.j2 ├── test5.yml ├── test6.j2 ├── test6.yml ├── test7.j2 ├── test7.yml ├── test8.j2 ├── test8.yml ├── test9.j2 ├── test9.txt └── test9.yml ├── example-076 ├── NOTES └── test1.yml ├── example-077 ├── NOTES ├── files │ ├── modules.conf │ └── modules.conf.sample ├── ha.txt ├── mark-block.yml ├── mk_iptables ├── mk_iptables.orig ├── replace-10.yml ├── replace-11.yml ├── replace-12.yml ├── replace-13.yml ├── replace-14-data.txt ├── replace-14-data.txt.orig ├── replace-14.yml ├── replace-14a-data.txt ├── replace-15.yml ├── replace-16.yml ├── test.j2 ├── test.xml ├── test1.yml ├── test2.txt ├── test2.yml ├── test3.yml ├── test4.yml ├── test5.php ├── test5.yml ├── test6.yml ├── test7.j2 ├── test7.yml ├── test8.yml └── test9.yml ├── example-078 ├── NOTES ├── test-dir │ ├── 1 │ ├── 2 │ └── 3 ├── test-keep-newer.yml ├── test.tar ├── test1.yml └── test2.yml ├── example-079 ├── NOTES ├── datafile.txt ├── files │ ├── file1.yml │ ├── file2.yml │ ├── file3.yml │ ├── file4.yml │ └── file5.yml ├── minfo.j2 ├── play2.yml ├── regex10.yml ├── regex11.yml ├── run ├── search8.yml ├── tempfile_1.path ├── templates │ ├── default.j2 │ ├── nr.j2 │ ├── ns.j2 │ └── nt.j2 ├── test1.yml ├── test10.yml ├── test11.yml ├── test12.yml ├── test13.yml ├── test2.yml ├── test3.yml ├── test4.yml ├── test5.yml ├── test6.yml ├── test7.yml ├── test8-data.json ├── test8.yml └── test9.yml ├── example-080 ├── NOTES ├── group_vars │ └── myEnv ├── play1.yml ├── play11.yml ├── play15.yml ├── play16.yml ├── play17.yml ├── play2.yml ├── play3.yml ├── play4-template.j2 ├── play4.yml ├── play4b.yml ├── play4c.yml ├── play5.yml ├── play6.yml ├── script.sh ├── test1.yml ├── test13.yml ├── test14-template.j2 ├── test14.yml ├── test2.yml ├── test5.yml ├── test6.yml ├── test7.yml ├── test8.yml └── test9.yml ├── example-081 ├── NOTES ├── test-116-data.yml ├── test-116.yml ├── test-117-data.yml ├── test-117.yml └── test-118-data.yml ├── example-082 ├── NOTES ├── my_hosts ├── my_hosts.j2 ├── play1.bash ├── play1.yml ├── play2.yml └── play3.yml ├── example-083 ├── NOTES └── play1.yml ├── example-084 ├── NOTES ├── bash_profile ├── bash_profile.orig ├── basics-01.txt ├── basics-01.yml ├── files-16 │ ├── login.defs │ └── login.defs.orig ├── files-17.orig │ ├── sshd_config.0 │ ├── sshd_config.1 │ ├── sshd_config.2 │ ├── sshd_config.3 │ ├── sshd_config.4 │ └── sshd_config.5 ├── files-17.orig2 │ ├── sshd_config.0 │ ├── sshd_config.1 │ ├── sshd_config.2 │ ├── sshd_config.3 │ ├── sshd_config.4 │ └── sshd_config.5 ├── files-17 │ ├── sshd_config.0 │ ├── sshd_config.1 │ ├── sshd_config.2 │ ├── sshd_config.3 │ ├── sshd_config.4 │ └── sshd_config.5 ├── files-19 │ ├── test.conf │ └── test.conf.default ├── files-4 │ ├── environment │ └── environment.ok ├── files-6 │ ├── test.conf │ └── test.conf.orig ├── log4j.properties ├── log4j.properties.orig ├── myconffile ├── myconffile.ok ├── myconffile3 ├── myconffile3.ok ├── myconffile3_bkp ├── myconffile_bkp ├── play-17.yml ├── play-18.yml ├── play-19.yml ├── play1.yml ├── play10.yml ├── play11.yml ├── play12.yml ├── play13.yml ├── play14.yml ├── play15.yml ├── play15a.yml ├── play16.yml ├── play2.sh ├── play2.yml ├── play3.sh ├── play3.yml ├── play4.yml ├── play5.yml ├── play6.yml ├── play7.yml ├── play8.yml ├── play9.yml ├── rsyslog.conf ├── rsyslog.conf.orig ├── test10.conf ├── test10.conf.orig ├── test10.txt ├── test11.conf ├── test11.conf.orig ├── test8.txt ├── test9.conf └── test9.conf.orig ├── example-085 ├── NOTES ├── all.sh ├── bool_utils.yml ├── bool_utils2.yml ├── bool_utils_data.yml ├── dict1.yml ├── dict3.yml ├── dict4.yml ├── inventory-01.yml ├── inventory_plugins │ ├── ip_based_groups.py │ └── ip_based_groups.pyc ├── list_split_period-1.yml ├── prefix_key.yml ├── sort_versions.yml ├── string_replace_1.yml ├── string_replace_2.yml ├── test-bool_filters.yml ├── test-datetime_filters.yml ├── test-dict_filters.yml ├── test-file_filters.yml ├── test-hash_filters.yml ├── test-list_filters.yml ├── test-string_filters.yml ├── test-version_filters.yml ├── test.txt ├── test_file1.txt ├── test_file2.txt └── test_file3.txt ├── example-086 ├── NOTES ├── README.md ├── play.yml ├── play10.yml ├── play11.yml ├── play12.yml ├── play2.yml ├── play3.yml ├── play4.yml ├── play5.yml ├── play6.yml ├── play7.yml ├── play8.yml └── play9.yml ├── example-087 ├── NOTES └── play.yml ├── example-088 ├── NOTES ├── data1.yml ├── data2.yml ├── data3.yml ├── play.yml ├── play2.yml ├── play3.yml ├── play4.yml ├── test2-data.yml ├── test2.yml ├── test3.yml ├── test4.yml └── test5.yml ├── example-089 ├── NOTES └── play.yml ├── example-090 ├── NOTES ├── add_to_list1.yml └── service-list.yml ├── example-092 ├── NOTES └── service-list.yml ├── example-093 ├── NOTES ├── handler-test1.yml ├── handler-test2.yml ├── handler-test3.yml ├── handler-test4.yml └── roles │ └── role1 │ ├── README.md │ ├── defaults │ └── main.yml │ ├── handlers │ └── main.yml │ ├── meta │ └── main.yml │ ├── tasks │ └── main.yml │ ├── tests │ ├── inventory │ └── test.yml │ └── vars │ └── main.yml ├── example-094 ├── NOTES ├── amnesiac-01.yml ├── files │ ├── test1 │ ├── test2 │ └── test2.orig ├── my_hostvars.json.j2 ├── play1.yml ├── play2.yml ├── play3.yml ├── play4.yml ├── play5.yml ├── play6.yml ├── test.txt └── test.txt.bak ├── example-095 ├── NOTES ├── cats_dogs_file.txt ├── data2.txt ├── data3.txt ├── format_paragraph.yml ├── play1.yml ├── play2.yml ├── play3.yml ├── play4.yml └── play5.yml ├── example-096 ├── NOTES ├── play1.yml ├── play2.yml ├── play3.yml ├── play4.yml └── play5.yml ├── example-097 ├── NOTES ├── data_machine_test.yml └── play1.yml ├── example-098 ├── NOTES ├── diff-5.yml ├── diff-6.yml ├── diff-7.yml ├── diff-7a.yml ├── play1.yml ├── play2.yml ├── play3.yml ├── play4.yml ├── play5.yml ├── props.txt └── props.txt.new ├── example-099 ├── NOTES ├── filter_plugins │ ├── list_methods.py │ └── list_methods.pyc ├── play1.yml ├── play2.yml ├── play3.yml ├── play4.yml ├── play5.yml └── play6.yml ├── example-100 ├── NOTES ├── play1.yml ├── play2.yml ├── templates │ ├── my_template.j2 │ └── my_template2.j2 ├── test1.txt └── test2.txt ├── example-101 ├── NOTES └── play1.yml ├── example-102 ├── NOTES ├── control.ini ├── pb-A.yml ├── pb-B.yml ├── pb-C.yml ├── pb1.yml ├── pb2.yml ├── pb3.yml ├── pb4.yml ├── pb7.yml ├── play1.yml ├── play2.yml ├── play3.yml ├── play4.yml ├── play5.yml ├── play6-data.conf ├── play6.yml ├── play7-data.ini ├── play7.yml ├── play8.yml ├── play9.yml ├── test2.ini └── test5.ini ├── example-103 ├── NOTES ├── dict2items-3.yml ├── dict2items-3a-data.yml ├── dict2items-3b-data.yml ├── dict2items-4.yml ├── dict2list-1.yml ├── play1.yml └── play2.yml ├── example-104 ├── NOTES ├── play1.yml ├── play2.yml ├── play3.yml ├── reject4-data.yml ├── reject4.yml └── reject4a.yml ├── example-105 ├── README.md ├── become-06.yml ├── play1.yml ├── play2.yml ├── play3.yml ├── play4.yml ├── play5.yml └── play6.yml ├── example-106 ├── NOTES ├── play1.yml ├── play2.yml ├── play3.yml ├── roles │ └── common │ │ ├── README.md │ │ ├── defaults │ │ └── main.yml │ │ ├── handlers │ │ └── main.yml │ │ ├── meta │ │ └── main.yml │ │ ├── tasks │ │ └── main.yml │ │ ├── tests │ │ ├── inventory │ │ └── test.yml │ │ └── vars │ │ └── main.yml ├── ssh-pub-keys │ ├── user1 │ │ ├── hostA_id_ecdsa.pub │ │ ├── hostA_id_ed25519.pub │ │ ├── hostB_id_ecdsa.pub │ │ ├── hostB_id_ed25519.pub │ │ └── hostB_id_rsa.pub │ └── user2 │ │ ├── hostC_id_ecdsa.pub │ │ ├── hostC_id_rsa.pub │ │ ├── hostD_id_ecdsa.pub │ │ └── hostD_id_ed25519.pub └── vars │ ├── her_pen.yml │ ├── his_pen.yml │ └── my_pen.yml ├── example-107 ├── NOTES └── test1.yml ├── example-108 ├── NOTES ├── test1.yml ├── test2.yml ├── test3.yml ├── test4.yml └── test5.yml ├── example-109 ├── NOTES ├── abc.yml ├── count_incr.yml ├── declare_var.yml ├── echo.sh ├── loop_when.yml ├── printoutput.yml ├── printoutput3.yml ├── provision_cmd ├── random.sh ├── until-4.yml ├── until-5.yml ├── until_completed.yml ├── until_completed2.yml ├── until_completed3.yml └── wait_for_var.yml ├── example-110 ├── NOTES ├── declare_var.yml ├── shared-vars.ini ├── wait_for_multiple.yml ├── wait_for_sane.yml ├── wait_for_sshd.yml ├── wait_for_sshd2.yml └── wait_for_var.yml ├── example-111 ├── NOTES ├── combine1.yml ├── combine10.yml ├── combine11-data.yml ├── combine11.yml ├── combine12.yml ├── combine13.yml ├── combine14.yml ├── combine15.yml ├── combine16.yml ├── combine17.yml ├── combine18.yml ├── combine19.yml ├── combine2.yml ├── combine20.yml ├── combine21.yml ├── combine22.yml ├── combine3-data.yml ├── combine3.yml ├── combine4.yml ├── combine5.yml ├── combine6.yml ├── combine7.yml ├── combine8-data.yml ├── combine8.yml ├── combine9-data.yml ├── combine9.yml ├── data.csv ├── data7.yml ├── filter_plugins │ ├── combine5.py │ └── combine_lossless.py ├── roles │ ├── userupdate │ │ ├── tasks │ │ │ └── main.yml │ │ └── vars │ │ │ └── main.yml │ └── userupdate2 │ │ ├── tasks │ │ └── main.yml │ │ └── vars │ │ └── main.yml ├── tracker.txt ├── tracker.txt.orig └── tracker2.txt ├── example-112 ├── NOTES └── union1.yml ├── example-113 ├── NOTES ├── groups1.yml ├── groups2.yml ├── groups3.yml ├── groups4-include.yml └── groups4.yml ├── example-114 ├── NOTES ├── play1-data.yml ├── play1.yml ├── play2-data.yml ├── play2.yml ├── play3.yml ├── play4.yml └── plugins │ └── filter │ └── items2dict2.py ├── example-115 ├── NOTES └── play1.yml ├── example-116 ├── NOTES └── play1.yml ├── example-117 ├── NOTES ├── play1-data.yml ├── play1.yml └── play2.yml ├── example-118 ├── NOTES ├── my_switches.j2 ├── play1.yml ├── play2.yml ├── play3.yml └── play4.yml ├── example-119 ├── NOTES └── play1.yml ├── example-120 ├── NOTES ├── play1.yml ├── play2.yml ├── roles │ └── role1 │ │ ├── README.md │ │ ├── defaults │ │ └── main.yml │ │ ├── files │ │ ├── defaults │ │ │ └── index.html │ │ └── index.html │ │ ├── handlers │ │ └── main.yml │ │ ├── meta │ │ └── main.yml │ │ ├── tasks │ │ └── main.yml │ │ ├── tests │ │ ├── inventory │ │ └── test.yml │ │ └── vars │ │ └── main.yml └── test_01 │ └── index.html ├── example-121 ├── NOTES ├── package_facts-01.yml ├── package_facts-02.yml └── play1.yml ├── example-122 ├── NOTES ├── play1.yml ├── play2-data.json ├── play2.yml ├── selectattr-in.yml ├── selectattr1.yml ├── selectattr2.yml ├── selectattr3.yml └── selectattr4.yml ├── example-123 ├── NOTES ├── play1.yml ├── play2.yml ├── play3.yml ├── play4.yml ├── play5.yml ├── test-4.txt ├── test-4.txt.orig ├── test.txt └── test.txt.orig ├── example-124 ├── NOTES ├── play1.yml ├── play2.yml ├── play3.yml └── roles │ ├── buffer_stats │ ├── .travis.yml │ ├── README.md │ ├── defaults │ │ └── main.yml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ ├── main.yml │ │ └── notifications.yml │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ └── main.yml │ ├── hmu_stats │ ├── .travis.yml │ ├── README.md │ ├── defaults │ │ └── main.yml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ ├── main.yml │ │ └── notifications.yml │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ └── main.yml │ ├── role1 │ ├── README.md │ ├── defaults │ │ └── main.yml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ └── main.yml │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ └── main.yml │ └── role2 │ ├── README.md │ ├── defaults │ └── main.yml │ ├── handlers │ └── main.yml │ ├── meta │ └── main.yml │ ├── tasks │ └── main.yml │ ├── tests │ ├── inventory │ └── test.yml │ └── vars │ └── main.yml ├── example-125 ├── NOTES ├── cobbler.py ├── inventory2.sh ├── play1.yml ├── play2.yml └── play3.yml ├── example-126 ├── README.md ├── arwrapper1.sh ├── play1.yml ├── play2.yml ├── play3.yml ├── play4.yml ├── play5.yml ├── play6.yml ├── private1 │ ├── daemon.log │ ├── env │ │ ├── envvars │ │ ├── extravars │ │ ├── passwords │ │ ├── settings │ │ └── ssh_key │ └── project │ │ ├── roles │ │ └── testrole │ │ │ ├── README.md │ │ │ ├── defaults │ │ │ └── main.yml │ │ │ ├── handlers │ │ │ └── main.yml │ │ │ ├── meta │ │ │ └── main.yml │ │ │ ├── tasks │ │ │ └── main.yml │ │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ │ └── vars │ │ │ └── main.yml │ │ └── test.yml ├── private2 │ ├── daemon.log │ ├── env │ │ ├── envvars │ │ ├── extravars │ │ ├── passwords │ │ ├── settings │ │ └── ssh_key │ └── project │ │ ├── private2 │ │ └── artifacts │ │ │ └── 8dc70a5d-d1ec-4b1e-b62b-a52f2ec2d1ba │ │ │ ├── command │ │ │ ├── job_events │ │ │ └── 1-a0043e3b-bd79-4c87-9d33-6edb09309fd4.json │ │ │ ├── rc │ │ │ ├── status │ │ │ └── stdout │ │ ├── roles │ │ └── testrole │ │ │ ├── README.md │ │ │ ├── defaults │ │ │ └── main.yml │ │ │ ├── handlers │ │ │ └── main.yml │ │ │ ├── meta │ │ │ └── main.yml │ │ │ ├── tasks │ │ │ └── main.yml │ │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ │ └── vars │ │ │ └── main.yml │ │ └── test.yml ├── private3 │ ├── daemon.log │ ├── env │ │ ├── envvars │ │ ├── extravars │ │ ├── passwords │ │ ├── settings │ │ └── ssh_key │ └── project │ │ └── test.yml ├── private5 │ ├── env │ │ ├── cmdline │ │ ├── envvars │ │ ├── extravars │ │ ├── passwords │ │ ├── settings │ │ └── ssh_key │ └── project │ │ ├── test1.yml │ │ ├── test2.yml │ │ ├── test3.yml │ │ └── test4.yml ├── private6 │ ├── env │ │ ├── cmdline │ │ ├── envvars │ │ ├── extravars │ │ ├── passwords │ │ ├── settings │ │ └── ssh_key │ └── project │ │ └── test1.yml ├── run1.bash ├── templates │ ├── my_list.err.j2 │ ├── my_list.log.j2 │ └── test_file.j2 ├── test1.sh ├── test2.sh ├── test3.sh └── test4.sh ├── example-127 ├── NOTES ├── c1 │ ├── f1 │ ├── f2 │ └── f3 ├── filter_plugins │ ├── datetime_filters.py │ └── datetime_filters.pyc ├── play-9.yml ├── play0.yml ├── play1.yml ├── play2.yml ├── play3.yml ├── play4.yml ├── play5.yml ├── play6.yml ├── play7.yml └── play8.yml ├── example-128 ├── NOTES ├── config ├── my_custom_command.sh ├── script-1.yml ├── shell-1.yml ├── shell-2.yml ├── shell-3.yml ├── shell-4.yml └── test1.sh ├── example-129 ├── NOTES └── test1.yml ├── example-130 └── NOTES ├── example-131 ├── NOTES ├── VERSION ├── loop1.yml ├── loop2-tasks.yml └── loop2.yml ├── example-132 ├── NOTES ├── group_vars │ ├── all.yml │ └── test.yml ├── test1.yml ├── test2.yml └── test3.yml ├── example-133 ├── NOTES ├── roles │ └── role1 │ │ ├── README.md │ │ ├── defaults │ │ └── main.yml │ │ ├── handlers │ │ └── main.yml │ │ ├── meta │ │ └── main.yml │ │ ├── tasks │ │ └── main.yml │ │ ├── tests │ │ ├── inventory │ │ └── test.yml │ │ └── vars │ │ └── main.yml ├── test1.yml ├── test2.yml └── test3.yml ├── example-134 ├── NOTES ├── POC-ENV_list.yml ├── db15.csv ├── filter_plugins │ ├── list_methods.py │ └── list_methods.pyc ├── get-assigned-value.sh ├── group_vars │ └── POC_ENV.yml ├── play-do-11.yml ├── test1.yml ├── test10.yml ├── test11.yml ├── test12.yml ├── test13.yml ├── test14.yml ├── test15.yml ├── test16.yml ├── test2.yml ├── test3.yml ├── test4-loop.yml ├── test4.yml ├── test5.yml ├── test6.yml ├── test7.yml ├── test8.yml ├── test9.yml └── tomcat_ubuntu_new.yaml ├── example-135 ├── NOTES ├── regex3.yml ├── regex4.yml ├── test1.j2 ├── test1.yml └── test2.yml ├── example-136 ├── NOTES ├── roles │ └── test │ │ ├── .travis.yml │ │ ├── README.md │ │ ├── defaults │ │ └── main.yml │ │ ├── handlers │ │ └── main.yml │ │ ├── meta │ │ └── main.yml │ │ ├── tasks │ │ ├── main.yml │ │ └── task.yml │ │ ├── tests │ │ ├── inventory │ │ └── test.yml │ │ └── vars │ │ └── main.yml ├── test1.yml ├── test2.yml ├── test3.yml ├── vars1.yml ├── vars2.yml ├── vars3.yml ├── vars4.yml ├── vars5.yml ├── vars6.yml └── vars7.yml ├── example-137 ├── NOTES └── test1.yml ├── example-138 ├── NOTES ├── data1.json ├── data2.json ├── filter_plugins.3 │ ├── dict_utils.py │ └── dict_utils.pyc ├── filter_plugins.orig │ ├── dict_utils.py │ └── list_methods.py ├── filter_plugins │ └── dict_normalize.py ├── test1.yml ├── test2.yml ├── test3.yml ├── test4.yml ├── test5.yml └── test6.yml ├── example-139 ├── NOTES ├── data-2.json ├── data1.json ├── filter_plugins │ ├── dict_utils.py │ ├── dict_utils.pyc │ ├── list_methods.py │ └── list_methods.pyc ├── test1.yml ├── test2.yml └── test3.yml ├── example-140 ├── NOTES ├── data1.json ├── data2.yml ├── data3.yml ├── data4.yml ├── keys-1.yml ├── not_null-01.py ├── not_null-01.yml ├── select-1.yml ├── select-2.yml ├── select-3.yml ├── select-4.yml └── to_number-01.yml ├── example-141 ├── NOTES ├── play1.yml ├── play4.yml ├── play5.yml └── roles │ ├── example │ ├── README.md │ ├── defaults │ │ └── main.yml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ ├── generate_config_files.yml │ │ └── main.yml │ ├── templates │ │ └── consumer.properties.j2 │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ └── main.yml │ ├── minimal │ └── tasks │ │ └── main.yml │ ├── play1.yml │ ├── role1 │ ├── README.md │ ├── defaults │ │ └── main │ │ │ ├── file1.yml │ │ │ ├── file2.yml │ │ │ └── file3.yml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ └── main.yml │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ └── main.yml │ ├── role2 │ ├── README.md │ ├── defaults │ │ └── main.yml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ └── main.yml │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ └── main.yml │ ├── role3 │ ├── README.md │ ├── defaults │ │ └── main.yml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ ├── deploy1.yml │ │ ├── deploy2.yml │ │ └── main.yml │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ └── main.yml │ ├── role4 │ ├── README.md │ ├── defaults │ │ └── main │ │ │ ├── file1.yml │ │ │ ├── file2.yml │ │ │ └── file3.yml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ └── main.yml │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ └── main.yml │ └── roleX │ ├── README.md │ ├── defaults │ └── main.yml │ ├── handlers │ └── main.yml │ ├── meta │ └── main.yml │ ├── tasks │ └── main.yml │ ├── tests │ ├── inventory │ └── test.yml │ └── vars │ └── main.yml ├── example-142 ├── NOTES ├── buildusers │ ├── user1.yml │ └── user2.yml ├── play1.yml ├── play2.yml ├── play3.yml ├── play4.yml ├── play5.yml ├── roles │ └── example │ │ ├── README.md │ │ ├── defaults │ │ └── main.yml │ │ ├── handlers │ │ └── main.yml │ │ ├── meta │ │ └── main.yml │ │ ├── tasks │ │ ├── generate_config_files.yml │ │ └── main.yml │ │ ├── templates │ │ └── consumer.properties.j2 │ │ ├── tests │ │ ├── inventory │ │ └── test.yml │ │ └── vars │ │ └── main.yml └── testvars.yml ├── example-143 ├── NOTES ├── group_vars │ ├── devgroup.yml │ ├── grp001.yml │ ├── grp002.yml │ └── grp003.yml ├── host_vars │ ├── server001.yml │ └── server002.yml ├── play1.yml ├── play2.yml ├── play3.yml ├── play4.yml ├── play5.yml ├── play6.yml ├── play7.yml └── roles │ ├── example │ ├── README.md │ ├── defaults │ │ └── main.yml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ └── main.yml │ ├── templates │ │ └── consumer.properties.j2 │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ └── main.yml │ ├── role_A │ ├── README.md │ ├── defaults │ │ └── main.yml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ ├── debug.yml │ │ ├── main.yml │ │ └── vars.yml │ ├── templates │ │ └── consumer.properties.j2 │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ └── main.yml │ ├── role_B │ ├── README.md │ ├── defaults │ │ └── main.yml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ ├── debug.yml │ │ ├── main.yml │ │ └── vars.yml │ ├── templates │ │ └── consumer.properties.j2 │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ └── main.yml │ ├── role_C │ ├── README.md │ ├── defaults │ │ └── main.yml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ ├── debug.yml │ │ ├── main.yml │ │ └── vars.yml │ ├── templates │ │ └── consumer.properties.j2 │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ └── main.yml │ └── role_D │ ├── README.md │ ├── defaults │ └── main.yml │ ├── handlers │ └── main.yml │ ├── meta │ └── main.yml │ ├── tasks │ └── main.yml │ ├── templates │ └── consumer.properties.j2 │ ├── tests │ ├── inventory │ └── test.yml │ └── vars │ └── main.yml ├── example-144 ├── NOTES ├── gcp_modules ├── play1.yml ├── play2.yml └── play3.yml ├── example-145 ├── NOTES ├── generate-password-4.yml ├── play1.yml ├── play2.yml └── play3.yml ├── example-146 ├── NOTES └── play1.yml ├── example-147 ├── NOTES ├── play1.yml ├── play2.yml ├── version3.yml ├── version4.yml ├── version5.yml ├── version6.yml └── version7.yml ├── example-148 ├── NOTES ├── play1.yml ├── play2.yml └── play3.yml ├── example-149 ├── NOTES └── play1.yml ├── example-150 ├── NOTES ├── play1.yml ├── play2.yml ├── play3.yml ├── play3b.yml ├── play3c.yml └── play4.yml ├── example-151 ├── NOTES └── play1.yml ├── example-152 ├── NOTES └── play1.yml ├── example-153 ├── NOTES ├── csv_file.csv ├── cvs-01-data.csv ├── cvs-01.yml ├── cvs-02-data.csv ├── cvs-02.yml ├── cvs-03.yml ├── cvs-04.yml ├── cvs-05.yml ├── cvs-06.yml ├── cvs-07.yml └── cvs-08.yml ├── example-154 ├── NOTES ├── meta2.yml ├── meta3.yml ├── noop.yml ├── play1.yml ├── play4.yml ├── play5.yml ├── play6.yml ├── play7.yml └── roles │ ├── runcommand │ ├── .travis.yml │ ├── README.md │ ├── defaults │ │ └── main.yml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ └── main.yml │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ └── main.yml │ ├── startprogram │ ├── .travis.yml │ ├── README.md │ ├── defaults │ │ └── main.yml │ ├── handlers │ │ └── main.yml │ ├── meta │ │ └── main.yml │ ├── tasks │ │ └── main.yml │ ├── tests │ │ ├── inventory │ │ └── test.yml │ └── vars │ │ └── main.yml │ └── startsecprogram │ ├── .travis.yml │ ├── README.md │ ├── defaults │ └── main.yml │ ├── handlers │ └── main.yml │ ├── meta │ └── main.yml │ ├── tasks │ └── main.yml │ ├── tests │ ├── inventory │ └── test.yml │ └── vars │ └── main.yml ├── example-155 ├── NOTES ├── test1.yml ├── test2.yml ├── test3.yml ├── test4.yml ├── test5.yml └── test6.yml ├── example-156 ├── NOTES ├── product1.yml ├── product2-data.json ├── product2.yml ├── product3.yml ├── product4.yml ├── product5.yml ├── product6.yml └── product7.yml ├── example-157 ├── NOTES ├── test1-data.txt ├── test1.yml └── test2.yml ├── example-158 ├── NOTES ├── group_vars │ └── all.yml ├── pl1.yml ├── pl2.yml ├── roles │ ├── role1 │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ └── main.yml │ └── role2 │ │ ├── .travis.yml │ │ ├── README.md │ │ ├── defaults │ │ └── main.yml │ │ ├── handlers │ │ └── main.yml │ │ ├── meta │ │ └── main.yml │ │ ├── tasks │ │ ├── main.yml │ │ ├── task1.yml │ │ └── task2.yml │ │ ├── tests │ │ ├── inventory │ │ └── test.yml │ │ └── vars │ │ └── main.yml ├── task4.yml ├── test1.yml ├── test2.yml ├── test3a.yml ├── test3b.yml ├── test4.yml └── test5.yml ├── example-159 ├── NOTES ├── intersect2.yml ├── test1-loop1.yml ├── test1.yml ├── test2-data.json └── test2.yml ├── example-160 ├── NOTES ├── test5.yml └── test6.yml ├── example-161 ├── NOTES ├── test-01.yml └── test-02.yml ├── example-162 ├── NOTES ├── join2.yml ├── join3.yml └── test1.yml ├── example-163 ├── NOTES ├── sample.yml ├── sample1.py ├── sample2.py ├── sample3.json ├── sample3.py └── sample3.yml ├── example-164 ├── NOTES └── validate-01.yml ├── example-165 ├── NOTES ├── bridges.txt ├── bridges.txt.j2 ├── facts-01.yml ├── facts-02.yml ├── facts-03.yml ├── facts-04.yml ├── facts-05.yml └── facts-06.yml ├── example-166 ├── NOTES └── serial-01.yml ├── example-167 ├── NOTES ├── fact-01.yml ├── fact-02.yml ├── fact-03.yml ├── fact-04.yml ├── fact-05.yml ├── fact-06.yml ├── fact-07.yml └── include-lookup.yml ├── example-168 ├── NOTES ├── debug1.yml ├── dir │ └── pb2.yml └── pb1.yml ├── example-169 ├── NOTES ├── dig1.yml ├── dig2.yml ├── dig3.yml ├── dig4.yml └── dir │ └── pb2.yml ├── example-170 ├── NOTES ├── dir │ └── pb2.yml └── index1.yml ├── example-171 ├── NOTES ├── command1.yml ├── command2.yml ├── command3.yml ├── command4.yml ├── command5.yml └── command6.yml ├── example-172 ├── NOTES ├── command1.yml └── command2.yml ├── example-173 ├── NOTES ├── develop │ └── group_var │ │ └── all.yml ├── from_yaml_01.yml ├── from_yaml_02.yml ├── from_yaml_03.yml ├── from_yaml_all_01.yml ├── from_yaml_all_02.yml ├── from_yaml_all_03.yml ├── from_yaml_all_04-data.yml ├── from_yaml_all_04.yml ├── global │ └── group_var │ │ └── all.yml ├── group_vars │ ├── db.yml │ ├── linux.yml │ └── webserver.yml ├── ip_list.txt └── to_yaml_01.yml ├── example-174 ├── NOTES ├── extract-01.yml ├── extract-02.yml ├── extract-03.yml ├── extract-04.yml ├── extract-05.yml ├── extract-05a.yml ├── extract-05b.yml ├── extract-06.yml └── group_vars │ ├── db.yml │ ├── linux.yml │ └── webserver.yml ├── example-175 ├── NOTES ├── group_names-01.yml ├── group_names-02.yml ├── group_names-05.yml ├── group_names-06.yml └── group_names-07.yml ├── example-176 ├── NOTES ├── data-02.yml ├── data-03.yml ├── loop-01.yml ├── loop-02.yml ├── loop-03.yml ├── loop-04.yml ├── template.j2 └── var │ └── ssh │ ├── user1 │ ├── user2 │ └── user3 ├── example-177 ├── NOTES ├── facts-01.yml └── var │ └── ssh │ ├── user1 │ ├── user2 │ └── user3 ├── example-178 ├── NOTES ├── files │ ├── varsfile.yml │ └── varsfile2.yml ├── roles │ ├── role1 │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ └── main │ │ │ ├── var1.yml │ │ │ ├── var2.yml │ │ │ └── var3.yml │ ├── role2 │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ └── vault.yml │ └── role3 │ │ ├── defaults │ │ └── main.yml │ │ ├── tasks │ │ └── main.yml │ │ └── vars │ │ └── main.yml ├── vars-01.yml ├── vars-02.yml ├── vars-03.yml └── varsfile.yml.bak1 ├── example-179 ├── NOTES ├── loop-net.yml ├── policy.json ├── vars-01.yml ├── vars-02.yml ├── vars-03.yml ├── vars-04.yml ├── vars-05.yml ├── vars-05b.yml ├── vars-1-data.yml ├── vars-2-data.json ├── vars-3-data.json ├── vars-4-data.json ├── vars-4b-data.json ├── vars-5-data.yml └── vars-5b-data.yml ├── example-180 ├── NOTES ├── ternary-01.yml ├── ternary-02.yml ├── ternary-05-tasks.yml ├── ternary-05.yml ├── ternary-05b-tasks.yml ├── ternary-05b.yml └── vars │ └── dbsrv.localdomain.dblist ├── example-181 ├── NOTES └── cache-01.yml ├── example-182 ├── NOTES ├── bare-01.yml ├── bare-02.yml └── bare-03.yml ├── example-183 ├── NOTES ├── my-script.sh └── quote-01.yml ├── example-184 ├── NOTES └── pipe-01.yml ├── example-185 ├── NOTES └── path-01.yml ├── example-186 ├── NOTES ├── test1.yml ├── test2.yml ├── test3.yml ├── test4.yml └── test5.yml ├── example-187 ├── NOTES ├── notify1.yml └── roles │ └── role1 │ ├── README.md │ ├── defaults │ └── main.yml │ ├── handlers │ └── main.yml │ ├── meta │ └── main.yml │ ├── tasks │ └── main.yml │ ├── tests │ ├── inventory │ └── test.yml │ └── vars │ └── main.yml ├── example-188 ├── NOTES ├── subst1.yml └── subst2.yml ├── example-189 └── NOTES ├── example-190 ├── NOTES ├── create-vm.yml ├── include-tasks-01.yml ├── include-tasks-02.yml ├── include-tasks-03.yml └── tasks-1.yml ├── example-191 ├── NOTES └── tasks-1.yml ├── example-192 ├── NOTES └── splitext-1.yml ├── example-193 ├── NOTES └── test1.yml ├── example-194 ├── NOTES ├── example.conf.j2 ├── main.j2 ├── main2.j2 ├── test.conf.j2 ├── test.j2 ├── test1.yml └── test2.yml ├── example-195 ├── NOTES ├── example.conf.j2 ├── filter_plugins │ └── list2bool.py ├── main.j2 ├── main2.j2 ├── test.conf.j2 ├── test.j2 ├── test1.yml ├── test2.yml ├── test3-data.json ├── test3.yml ├── test4-data.json ├── test4.yml ├── test5.yml ├── test6.yml ├── test7.yml ├── test8.yml ├── test8b.yml └── test9.yml ├── example-196 ├── NOTES └── test1.yml ├── example-197 ├── NOTES └── test1.yml ├── example-198 ├── NOTES ├── test1.yml └── test2.yml ├── example-199 ├── README.md ├── config2.xml ├── config2.xml.orig ├── foo.xml ├── test1.yml └── test2.yml ├── example-200 ├── NOTES └── test1.yml ├── example-201 ├── NOTES └── mapping1.yml ├── example-202 ├── NOTES ├── shuffle1.yml └── template1.j2 ├── example-203 ├── NOTES ├── fetch │ └── test_11 │ │ └── myfolder │ │ ├── file-1.yml │ │ ├── file-2.yml │ │ ├── file-3.yml │ │ ├── file-4.yml │ │ └── file-5.yml ├── fetch1.yml ├── fetch2.yml ├── fetch3.yml └── myfolder │ ├── file-1.yml │ ├── file-2.yml │ ├── file-3.yml │ ├── file-4.yml │ └── file-5.yml ├── example-204 ├── NOTES ├── jinja-01.yml └── jinja-02.yml ├── example-205 ├── NOTES └── remote_host-01.yml ├── example-206 ├── NOTES ├── in-01.yml ├── in-02.yml └── in-03.yml ├── example-207 ├── NOTES ├── credentials.conf.j2 ├── dict-01.yml ├── dict-02.yml └── dict-03.yml ├── example-208 ├── NOTES └── color-01.yml ├── example-209 ├── NOTES ├── wait_for_con_01.yml └── wait_for_con_02.yml ├── example-210 ├── NOTES ├── file-01.yml ├── file-02.yml └── files │ └── branches.txt ├── example-211 └── NOTES ├── example-212 ├── NOTES └── setup-01.yml ├── example-213 ├── NOTES └── setup-01.yml ├── example-214 ├── NOTES └── exists-01.yml ├── example-215 ├── NOTES ├── max-01.yml ├── max-02-dir.tar ├── max-02.yml └── max-03.yml ├── example-216 ├── NOTES ├── hostvars-01.yml ├── hostvars-02a.yml ├── hostvars-02b.yml ├── hostvars-03.yml ├── hostvars-04.yml ├── hostvars-05.yml ├── hostvars-05a.yml ├── hostvars-05b.yml ├── hostvars-06.yml └── hostvars-07.yml ├── example-217 ├── NOTES ├── date-01-data.yml ├── date-01.yml ├── date-02.yml ├── date-03.yml ├── datetime-01.yml ├── datetime-02.yml ├── roles │ ├── dummy_role │ │ ├── .travis.yml │ │ ├── README.md │ │ ├── defaults │ │ │ └── main.yml │ │ ├── handlers │ │ │ └── main.yml │ │ ├── meta │ │ │ └── main.yml │ │ ├── tasks │ │ │ └── main.yml │ │ ├── tests │ │ │ ├── inventory │ │ │ └── test.yml │ │ └── vars │ │ │ └── main.yml │ └── dummy_role_02 │ │ ├── .travis.yml │ │ ├── README.md │ │ ├── defaults │ │ └── main.yml │ │ ├── handlers │ │ └── main.yml │ │ ├── meta │ │ └── main.yml │ │ ├── tasks │ │ └── main.yml │ │ ├── tests │ │ ├── inventory │ │ └── test.yml │ │ └── vars │ │ └── main.yml ├── strftime-01.yml └── strftime-02.yml ├── example-218 ├── NOTES └── conn-01.yml ├── example-219 ├── NOTES └── reverse-01.yml ├── example-220 ├── NOTES ├── eloop-01.yml ├── eloop-02.yml ├── eloop-03.yml ├── eloop-04.yml └── eloop-05.yml ├── example-221 ├── NOTES ├── pinned-01.yml └── pinned-02.yml ├── example-222 └── NOTES ├── example-223 └── NOTES ├── example-224 ├── NOTES ├── none-01.yml └── none-02.yml ├── example-225 ├── NOTES ├── meta-01.yml └── roles │ └── role_1 │ ├── .travis.yml │ ├── README.md │ ├── defaults │ └── main.yml │ ├── handlers │ └── main.yml │ ├── meta │ └── main.yml │ ├── tasks │ └── main.yml │ ├── tests │ ├── inventory │ └── test.yml │ └── vars │ └── main.yml ├── example-226 ├── NOTES └── ping-01.yml ├── example-227 ├── NOTES └── nfs-01.yml ├── example-228 ├── NOTES └── dhparam-01.yml ├── example-229 ├── NOTES └── play01.yml ├── example-230 ├── NOTES ├── environment ├── group_vars │ └── all ├── play01.yml ├── play02.yml ├── play03.yml ├── play04.yml ├── play05.yml ├── play06.yml └── play07.yml ├── example-231 └── play01.yml ├── example-232 ├── play01.yml └── vars │ └── requirements-roles.yml ├── example-234 ├── play-01.yml └── play-02.yml ├── example-235 ├── NOTES ├── play-01.yml └── releasevars.yml ├── example-236 ├── NOTES ├── pb.yml ├── play-01.yml ├── play-02.yml ├── play-03.yml ├── play-04.yml └── templates │ ├── template-01.j2 │ ├── template-02.j2 │ ├── template-03.j2 │ ├── template-04a.j2 │ └── template-04b.j2 ├── example-237 ├── NOTES ├── any2items.yml ├── filter_list.yml └── plugins │ └── filter │ └── any2items.py ├── example-238 ├── NOTES └── play-01.yml ├── example-239 ├── NOTES ├── play-01.yml ├── play-02.yml ├── play-03.yml └── sbin │ ├── audispd │ ├── auditctl │ ├── auditd │ ├── augenrules │ ├── aureport │ ├── ausearch │ └── autrace ├── example-240 ├── test-01-data.yml └── test-01.yml ├── example-241 ├── NOTES ├── files │ ├── always.yml │ ├── fail.yml │ └── succeed.yml ├── test-01.yml └── test-02.yml ├── example-242 ├── NOTES └── test-01.yml ├── example-243 └── test-01.yml ├── example-244 ├── NOTES └── test-01.yml ├── example-245 └── test-01.yml ├── example-246 └── test-01.yml ├── example-247 ├── NOTES ├── filter_plugins │ └── list_filters.py ├── test-01.yml ├── test-02.yml ├── test-03.yml ├── test-04.yml └── test-05.yml ├── example-248 ├── test-01.py ├── test-02.py ├── test-03.py └── test-04.py ├── example-249 ├── NOTES ├── mount-01.yml ├── mount-02.yml ├── mount-03.yml └── mount-04.yml ├── example-250 ├── play-01.yml ├── play-02.yml ├── play-03.yml └── test-1.yml ├── example-251 ├── test-01-data.yml └── test-01.yml ├── example-252 ├── NOTES └── test-01.yml ├── example-253 ├── NOTES ├── test-01.yml └── test-02.yml ├── example-254 ├── NOTES ├── filter_plugins │ └── netaddr.py └── test-01.yml ├── example-255 ├── NOTES ├── test-01.yml └── test-02.yml ├── example-256 ├── json_modify-01.yml ├── json_modify-02.yml ├── json_modify-03.yml ├── json_modify-04.yml ├── json_modify-05.yml └── plugins │ └── modules │ └── json_modify.py ├── example-257 ├── omit-01.yml ├── omit-02.yml └── omit-03.yml ├── example-258 ├── NOTES └── test-01.yml ├── example-259 └── length-01.yml ├── example-260 ├── NOTES ├── play1.yml └── play2.yml ├── example-261 └── test-01.yml ├── example-262 ├── filter_plugins │ └── combine_lossless.py ├── test-01.yml ├── test-02.yml └── test-03.yml ├── example-263 └── test-01.yml ├── example-264 ├── NOTES ├── test-01.yml └── test-02.yml ├── example-265 └── in-01.yml ├── example-266 ├── roles │ └── role_A │ │ ├── defaults │ │ └── main │ │ │ ├── vars_1.yml │ │ │ └── vars_2.yml │ │ └── tasks │ │ └── main.yml └── test_01.yml ├── example-267 ├── NOTES └── test-01.yml ├── example-268 ├── NOTES ├── batch-01.yml └── batch-02.yml ├── example-269 ├── NOTES ├── services.yaml └── tags-01.yml ├── example-270 ├── NOTES └── al_bsd_service_facts-01.yml ├── example-271 ├── NOTES └── test-01.yml ├── example-272 └── test-001.yml ├── example-273 ├── NOTES └── get-url-01.yml ├── example-274 ├── NOTES ├── native-01.yml └── templates │ └── property.yml ├── example-275 ├── NOTES └── test1.yml ├── example-276 ├── README ├── group_vars │ ├── client.yml │ └── master.yml ├── requirements.yml ├── setup-client.yml └── setup-master.yml ├── example-277 ├── NOTES ├── etc │ ├── export1 │ ├── export2 │ └── export3 └── test-1.yml ├── example-278 ├── NOTES ├── templates │ └── template-1.txt.j2 └── test-1.yml ├── example-279 ├── NOTES ├── files │ └── test1.txt └── play1.yml ├── example-280 ├── test-01.yml └── test-02.yml ├── example-281 ├── test-01.yml └── test-02.yml ├── example-282 └── test-01.yml ├── example-283 ├── test-01.yml └── test-02.yml ├── example-284 └── test-01.yml ├── example-285 ├── README.md ├── test-01.yml └── test-02.yml ├── example-286 ├── README.md ├── ansible-orig.cfg ├── ansible-test.cfg ├── examples.yml ├── pb-test.yml ├── test-01.yml └── test-02.yml ├── example-287 ├── README.md ├── contrib │ └── traptest.sh ├── files │ └── sleep90.sh ├── handlers │ ├── cache_update.yml │ ├── log.yml │ ├── logger.yml │ └── rsyslog.yml ├── pb.yml └── tasks │ ├── async_job.yml │ ├── cache_read.yml │ ├── copy_script.yml │ ├── create_log.yml │ ├── create_logger.yml │ ├── debug.yml │ ├── remove_pid.yml │ ├── sanity_job.yml │ ├── start_job.yml │ └── stop_job.yml ├── example-288 ├── README.md ├── handlers │ └── my_handler.yml ├── pb1.yml ├── pb2.yml ├── pb3.yml ├── pb4.yml ├── pb5.yml ├── pb6.yml └── tasks │ ├── debug1.yml │ ├── debug2.yml │ └── debug3.yml ├── example-289 ├── .yamllint ├── README.md ├── pb-all.yml ├── pb-keep_keys.yml ├── pb-remove_keys.yml ├── pb-replace_keys.yml ├── pb.yml ├── replace_keys-test_9.yml └── tasks │ ├── keep_keys.yml │ ├── remove_keys.yml │ └── replace_keys.yml ├── example-290 ├── README.md ├── pb1.yml ├── pb2.yml └── pb3.yml ├── example-291 ├── README.md ├── files │ └── fileglob │ │ ├── one.txt │ │ └── two.txt └── pb-integration-test.yml ├── example-292 ├── README.md ├── pb.yml └── plugins │ └── filter │ ├── __pycache__ │ └── mac-vendor-lookup.cpython-38.pyc │ └── mac-vendor-lookup.py ├── example-293 ├── README.md ├── pb.yml └── pb_itest-parse_etc_password.yml ├── example-294 ├── README.md └── pb.yml ├── example-295 ├── README.md └── pb.yml ├── example-296 ├── README.md └── pb.yml ├── example-297 ├── README.md ├── default-INI.j2 └── pb.yml ├── example-298 ├── README.md ├── default_dict-INI.j2 └── pb.yml ├── example-299 ├── README.md ├── fqdn_test.py ├── pb.yml ├── pb2.yml └── test_plugins │ └── fqdn_valid.py ├── example-300 ├── README.md ├── pb.yml ├── pb2.yml └── vars │ ├── app1.yml │ └── app2.yml ├── example-301 ├── README.md └── pb.yml ├── example-302 ├── README.md └── pb.yml ├── example-303 ├── README.md ├── ansible-orig.cfg ├── ansible-test.cfg ├── ex-01.yml ├── ex-04.yml ├── ex-05.yml ├── ex-09.yml ├── filter_keep_keys │ ├── aliases │ ├── tasks │ │ ├── keep_keys.yml │ │ └── main.yml │ └── vars │ │ └── main.yml ├── keep_keys.py ├── pb-test.yml ├── pb1.yml ├── pb2.yml ├── pb3.yml ├── pb4.yml └── plugins │ └── filter │ └── keep_keys.py ├── example-304 ├── 8439-feature-keep_keys.yml ├── 8442-feature-remove_keys.yml ├── README.md ├── ansible-orig.cfg ├── ansible-test.cfg ├── filter_remove_keys │ ├── aliases │ ├── tasks │ │ ├── main.yml │ │ └── remove_keys.yml │ └── vars │ │ └── main.yml ├── pb-test.yml ├── pb1.yml ├── pb2.yml ├── plugins │ └── filter │ │ └── remove_keys.py └── remove_keys.py ├── example-305 ├── 8439-feature-keep_keys.yml ├── 8442-feature-remove_keys.yml ├── 8445-feature-replace_keys.yml ├── README.md ├── ansible-orig.cfg ├── ansible-test.cfg ├── filter_replace_keys │ ├── aliases │ ├── tasks │ │ ├── fn-test-replace_keys.yml │ │ ├── main.yml │ │ └── replace_keys.yml │ └── vars │ │ └── main.yml ├── fn-test-replace_keys.yml ├── pb-test.yml ├── pb1.yml ├── pb2.yml ├── plugins │ └── filter │ │ └── replace_keys.py └── replace_keys.py ├── example-306 ├── README.md ├── default-common.yml ├── default-recursive-true.yml ├── example-001.yml ├── example-001_vars │ ├── default-common.yml │ └── list3.yml ├── example-002.yml ├── example-002_vars │ ├── default-common.yml │ └── list3.yml ├── example-003.yml ├── example-003_vars │ ├── default-recursive-true.yml │ └── list3.yml ├── example-004.yml ├── example-004_vars │ ├── default-recursive-true.yml │ └── list3.yml ├── example-005.yml ├── example-005_vars │ ├── default-recursive-true.yml │ └── list3.yml ├── example-006.yml ├── example-006_vars │ ├── default-recursive-true.yml │ └── list3.yml ├── example-007.yml ├── example-007_vars │ ├── default-recursive-true.yml │ └── list3.yml ├── example-008.yml ├── example-008_vars │ ├── default-recursive-true.yml │ └── list3.yml ├── example-009.yml ├── example-009_vars │ ├── default-common.yml │ └── list3.yml ├── examples.yml ├── examples_all.rst.j2 ├── extra-vars.yml ├── filter_guide_abstract_informations_merging_lists_of_dictionaries.rst.j2 ├── list3.out.j2 └── playbook.yml ├── example-307 ├── README.md └── pb1.yml ├── example-308 ├── README.md ├── pb1.yml └── pb2.yml ├── example-309 ├── README.md ├── inventory │ └── alllinux │ │ ├── 01-hosts.yml │ │ └── 02-constructed.yml ├── playbook_01.yml └── playbook_02.yml ├── example-310 ├── README.md └── pb1.yml ├── example-311 ├── README.md ├── pb-filter_reveal_ansible_type.yml ├── pb-test_ansible_type.yml ├── pb1.yml ├── pb11.yml ├── pb12.yml ├── pb13.yml ├── pb14.yml ├── pb2.yml └── plugins │ ├── filter │ └── reveal_ansible_type.py │ └── test │ └── ansible_type.py ├── example-312 ├── README.md └── pb1.yml ├── example-313 ├── README.md └── pb1.yml ├── example-314 ├── README.md └── pb1.yml ├── example-315 ├── README.md ├── pb1.yml ├── pb2.yml ├── pb3.yml └── pb4.yml ├── example-316 ├── README.md └── helper │ ├── ansible_type │ ├── README.md │ ├── ansible_type.rst.sha1 │ ├── playbook.yml │ ├── templates │ │ ├── examples.yml.j2 │ │ ├── tasks.yml.j2 │ │ └── test_guide-ansible_type.rst.j2 │ └── vars │ │ └── main │ │ └── tests.yml │ ├── keep_keys │ ├── README.md │ ├── keep_keys.rst.sha1 │ ├── playbook.yml │ ├── templates │ │ ├── default.j2 │ │ ├── filter_guide-abstract_informations-lists_of_dictionaries-keep_keys.rst.j2 │ │ └── mp.j2 │ └── vars │ │ └── main │ │ └── tests.yml │ ├── lists_mergeby │ ├── README.md │ ├── extra-vars.yml │ ├── files │ │ ├── example-001.yml │ │ ├── example-001_vars │ │ │ ├── default-common.yml │ │ │ └── list3.yml │ │ ├── example-002.yml │ │ ├── example-002_vars │ │ │ ├── default-common.yml │ │ │ └── list3.yml │ │ ├── example-003.yml │ │ ├── example-003_vars │ │ │ ├── default-recursive-true.yml │ │ │ └── list3.yml │ │ ├── example-004.yml │ │ ├── example-004_vars │ │ │ ├── default-recursive-true.yml │ │ │ └── list3.yml │ │ ├── example-005.yml │ │ ├── example-005_vars │ │ │ ├── default-recursive-true.yml │ │ │ └── list3.yml │ │ ├── example-006.yml │ │ ├── example-006_vars │ │ │ ├── default-recursive-true.yml │ │ │ └── list3.yml │ │ ├── example-007.yml │ │ ├── example-007_vars │ │ │ ├── default-recursive-true.yml │ │ │ └── list3.yml │ │ ├── example-008.yml │ │ ├── example-008_vars │ │ │ ├── default-recursive-true.yml │ │ │ └── list3.yml │ │ ├── example-009.yml │ │ └── example-009_vars │ │ │ ├── default-common.yml │ │ │ └── list3.yml │ ├── playbook.yml │ ├── templates │ │ ├── examples_all.rst.j2 │ │ ├── filter_guide_abstract_informations_merging_lists_of_dictionaries.rst.j2 │ │ └── list3.out.j2 │ └── vars │ │ ├── default-common.yml │ │ ├── default-recursive-true.yml │ │ └── examples.yml │ ├── remove_keys │ ├── README.md │ ├── playbook.yml │ ├── remove_keys.rst.sha1 │ ├── templates │ │ ├── default.j2 │ │ ├── filter_guide-abstract_informations-lists_of_dictionaries-remove_keys.rst.j2 │ │ └── mp.j2 │ └── vars │ │ └── main │ │ └── tests.yml │ ├── replace_keys │ ├── README.md │ ├── playbook.yml │ ├── replace_keys.rst.sha1 │ ├── templates │ │ ├── default.j2 │ │ ├── filter_guide-abstract_informations-lists_of_dictionaries-replace_keys.rst.j2 │ │ └── mp.j2 │ └── vars │ │ └── main │ │ └── tests.yml │ └── reveal_ansible_type │ ├── README.md │ ├── playbook.yml │ ├── reveal_ansible_type.rst.sha1 │ ├── templates │ ├── examples.yml.j2 │ ├── filter_guide-abstract_informations-types-reveal_ansible_type.rst.j2 │ └── tasks.yml.j2 │ └── vars │ └── main │ └── tests.yml ├── example-317 ├── README.md └── pb1.yml ├── example-318 ├── NOTES ├── README.md ├── needrestart.txt └── pipe-01.yml ├── example-319 ├── README.md ├── files │ ├── admin.txt │ ├── bob.txt │ └── www.txt └── pb1.yml ├── example-320 ├── README.md └── pb1.yml ├── example-321 ├── README.md ├── foo.bar ├── foo.baz └── pb1.yml └── example-322 ├── README.md └── pb1.yml /doc/make: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ansible-playbook Makefile.yml 4 | -------------------------------------------------------------------------------- /examples/example-001/NOTES: -------------------------------------------------------------------------------- 1 | https://stackoverflow.com/questions/50982925/jinja2-ansible-accessing-complex-var 2 | -------------------------------------------------------------------------------- /examples/example-004/NOTES: -------------------------------------------------------------------------------- 1 | https://stackoverflow.com/questions/51015315/ansible-strip-white-space 2 | -------------------------------------------------------------------------------- /examples/example-006/data-4.csv: -------------------------------------------------------------------------------- 1 | Nic1_Vlan Nic1_IP Nic1_MASK Nic1_Scope Nic2_Vlan Nic2_IP Nic2_MASK Nic2_Scope 2 | -------------------------------------------------------------------------------- /examples/example-006/file1.txt: -------------------------------------------------------------------------------- 1 | /u01/app/oracle/oradata/TEST/ 2 | /u02/ 3 | -------------------------------------------------------------------------------- /examples/example-006/files/file_a: -------------------------------------------------------------------------------- 1 | name = a 2 | number = 20 3 | -------------------------------------------------------------------------------- /examples/example-006/files/file_b: -------------------------------------------------------------------------------- 1 | name = b 2 | number = 21 3 | -------------------------------------------------------------------------------- /examples/example-006/templates/jinja.j2: -------------------------------------------------------------------------------- 1 | name = {{ item }} 2 | number = {{ index + offset }} 3 | -------------------------------------------------------------------------------- /examples/example-008/debug.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - debug: msg="item [ {{ item }} ]" 4 | 5 | # EOF 6 | ... 7 | -------------------------------------------------------------------------------- /examples/example-008/debug2.yml: -------------------------------------------------------------------------------- 1 | - debug: msg="Task included from /scratch/tmp/debug.yml" 2 | -------------------------------------------------------------------------------- /examples/example-013/NOTES: -------------------------------------------------------------------------------- 1 | Ansible with_items 2 | https://stackoverflow.com/questions/51434859/ansible-with-items 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /examples/example-014/task4.yml: -------------------------------------------------------------------------------- 1 | - debug: msg="{{ inventory_hostname }} {{ item }}" 2 | -------------------------------------------------------------------------------- /examples/example-014/task5.yml: -------------------------------------------------------------------------------- 1 | - command: hostname 2 | register: result 3 | delegate_to: "{{ item }}" 4 | - debug: var=result.stdout 5 | -------------------------------------------------------------------------------- /examples/example-015/group_vars/all/dirs.yml: -------------------------------------------------------------------------------- 1 | base_dir: "{{ playbook_dir }}" 2 | test_dir: "{{ base_dir }}/foo" 3 | test_dir2: "." 4 | -------------------------------------------------------------------------------- /examples/example-015/import_play.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - import_playbook: play1.yml 4 | - import_playbook: play2.yml 5 | 6 | # EOF 7 | ... 8 | -------------------------------------------------------------------------------- /examples/example-015/play1.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | tasks: 3 | - debug: 4 | msg: 'play1: {{ ansible_host }}' 5 | -------------------------------------------------------------------------------- /examples/example-015/play12.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # The keyword *hosts* must be in the included code 3 | 4 | - import_playbook: playbook12.yml 5 | -------------------------------------------------------------------------------- /examples/example-015/playbook12.yml: -------------------------------------------------------------------------------- 1 | - name: playbook 12 2 | hosts: localhost 3 | tasks: 4 | - debug: 5 | msg: OK 6 | -------------------------------------------------------------------------------- /examples/example-018/play1.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | roles: 3 | - role1 4 | -------------------------------------------------------------------------------- /examples/example-018/play2.yml: -------------------------------------------------------------------------------- 1 | - hosts: 2 | - vm2 3 | - vm3 4 | roles: 5 | - role1 6 | -------------------------------------------------------------------------------- /examples/example-018/roles/deploy_back/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for deploy_back -------------------------------------------------------------------------------- /examples/example-018/roles/deploy_back/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for deploy_back -------------------------------------------------------------------------------- /examples/example-018/roles/deploy_back/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks file for deploy_back 3 | - debug: msg="Role deploy_back here!" 4 | -------------------------------------------------------------------------------- /examples/example-018/roles/deploy_back/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/deploy_back/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - deploy_back -------------------------------------------------------------------------------- /examples/example-018/roles/deploy_back/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for deploy_back -------------------------------------------------------------------------------- /examples/example-018/roles/deploy_front/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for deploy_front -------------------------------------------------------------------------------- /examples/example-018/roles/deploy_front/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for deploy_front -------------------------------------------------------------------------------- /examples/example-018/roles/deploy_front/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks file for deploy_front 3 | - debug: msg="Role deploy_front here!" 4 | -------------------------------------------------------------------------------- /examples/example-018/roles/deploy_front/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/deploy_front/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - deploy_front -------------------------------------------------------------------------------- /examples/example-018/roles/deploy_front/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for deploy_front -------------------------------------------------------------------------------- /examples/example-018/roles/role-one/defaults/main.yml: -------------------------------------------------------------------------------- 1 | variable_one: Role One Variable 2 | -------------------------------------------------------------------------------- /examples/example-018/roles/role-one/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | var: variable_one 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role-one/tasks/noop.yml: -------------------------------------------------------------------------------- 1 | - meta: noop 2 | -------------------------------------------------------------------------------- /examples/example-018/roles/role-two/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | var: variable_one 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role1/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role1 -------------------------------------------------------------------------------- /examples/example-018/roles/role1/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role1 -------------------------------------------------------------------------------- /examples/example-018/roles/role1/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role1/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role1 -------------------------------------------------------------------------------- /examples/example-018/roles/role1/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role1 -------------------------------------------------------------------------------- /examples/example-018/roles/role10/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role10/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role10/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - fail: 2 | msg: Role failed. 3 | when: role_fail|default(false) 4 | -------------------------------------------------------------------------------- /examples/example-018/roles/role10/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role10/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role3 6 | -------------------------------------------------------------------------------- /examples/example-018/roles/role10/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role14/tasks/tasks-01.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: tasks 01 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role14/tasks/tasks-02.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: tasks 02 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role14/tasks/tasks-03.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: tasks 03 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role14/tasks/tasks-04.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: tasks 04 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role14/tasks/tasks-05.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: tasks 05 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role14/tasks/tasks-06.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: tasks 06 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role14/tasks/tasks-07.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: tasks 07 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role14/tasks/tasks-08.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: tasks 08 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role14/tasks/tasks-09.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: tasks 09 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role14/tasks/tasks-10.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: tasks 10 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role2/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role2 -------------------------------------------------------------------------------- /examples/example-018/roles/role2/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role2 -------------------------------------------------------------------------------- /examples/example-018/roles/role2/tasks/task2.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks2 file for role2 3 | 4 | - debug: 5 | msg: 'role2.task2: {{ test_var_1 }}' 6 | -------------------------------------------------------------------------------- /examples/example-018/roles/role2/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role2/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role2 -------------------------------------------------------------------------------- /examples/example-018/roles/role2/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role2 -------------------------------------------------------------------------------- /examples/example-018/roles/role3/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role3/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role3/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks 3 | 4 | - debug: 5 | msg: 'role3' 6 | 7 | # EOF 8 | -------------------------------------------------------------------------------- /examples/example-018/roles/role3/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role3/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role3 6 | -------------------------------------------------------------------------------- /examples/example-018/roles/role3/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role4/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role4/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role4/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks 3 | 4 | - debug: 5 | msg: 'role4' 6 | 7 | # EOF 8 | -------------------------------------------------------------------------------- /examples/example-018/roles/role4/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role4/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role3 6 | -------------------------------------------------------------------------------- /examples/example-018/roles/role4/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role5/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role5/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role5/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role5/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role5 6 | -------------------------------------------------------------------------------- /examples/example-018/roles/role5/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role6/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role6/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role6/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: "{{ item }}" 3 | loop: "{{ extensions }}" 4 | -------------------------------------------------------------------------------- /examples/example-018/roles/role6/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role6/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role3 6 | -------------------------------------------------------------------------------- /examples/example-018/roles/role6/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role8/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role8/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role8/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - set_fact: 2 | succeeded: true 3 | - debug: 4 | var: succeeded 5 | -------------------------------------------------------------------------------- /examples/example-018/roles/role8/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-018/roles/role8/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role3 6 | -------------------------------------------------------------------------------- /examples/example-018/roles/role8/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars 3 | -------------------------------------------------------------------------------- /examples/example-018/test8.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: Hello from task8 3 | -------------------------------------------------------------------------------- /examples/example-020/vars-17.json: -------------------------------------------------------------------------------- 1 | check_objects: 2 | live: 3 | current: 4 | - example.com 5 | next: 6 | - next.example.com 7 | -------------------------------------------------------------------------------- /examples/example-022/NOTES: -------------------------------------------------------------------------------- 1 | Building vars dynamically 2 | https://stackoverflow.com/questions/51847137/building-vars-dynamically 3 | 4 | -- 5 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults 3 | 4 | my_role: this is my_role 5 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - my_role 6 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role/vars/id_1: -------------------------------------------------------------------------------- 1 | first_param: 'first' 2 | second_param: 'undefined' 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role/vars/id_2: -------------------------------------------------------------------------------- 1 | first_param: 'undefined' 2 | second_param: 'second' 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role1/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults 3 | 4 | my_role1: this is my_role1 5 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role1/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role1/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role1/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - my_role 6 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role1/vars/id_1: -------------------------------------------------------------------------------- 1 | first_param: 'first' 2 | second_param: 'undefined' 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role1/vars/id_2: -------------------------------------------------------------------------------- 1 | first_param: 'undefined' 2 | second_param: 'second' 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role1/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role10/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role10/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role10/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role10/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - my_role 6 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role2/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults 3 | 4 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role2/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role2/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role2/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - my_role 6 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role2/vars/id_1: -------------------------------------------------------------------------------- 1 | first_param: 'first' 2 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role2/vars/id_2: -------------------------------------------------------------------------------- 1 | second_param: 'second' 2 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role2/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role3/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults 3 | 4 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role3/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role3/tasks/task1.yml: -------------------------------------------------------------------------------- 1 | - debug: msg="task1" 2 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role3/tasks/task2.yml: -------------------------------------------------------------------------------- 1 | - debug: msg="task2" 2 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role3/tasks/task3.yml: -------------------------------------------------------------------------------- 1 | - debug: msg="task3" 2 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role3/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role3/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - my_role3 6 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role3/vars/id_1: -------------------------------------------------------------------------------- 1 | first_param: 'first' 2 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role3/vars/id_2: -------------------------------------------------------------------------------- 1 | second_param: 'second' 2 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role3/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role4/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults 3 | 4 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role4/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role4/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks 3 | 4 | - command: /bin/true 5 | 6 | # EOF 7 | ... 8 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role4/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role4/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - my_role 6 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role4/vars/id_1: -------------------------------------------------------------------------------- 1 | first_param: 'first' 2 | second_param: 'undefined' 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role4/vars/id_2: -------------------------------------------------------------------------------- 1 | first_param: 'undefined' 2 | second_param: 'second' 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role4/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role5/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults 3 | 4 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role5/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role5/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role5/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - my_role 6 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role5/vars/id_1: -------------------------------------------------------------------------------- 1 | first_param: 'first' 2 | second_param: 'undefined' 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role5/vars/id_2: -------------------------------------------------------------------------------- 1 | first_param: 'undefined' 2 | second_param: 'second' 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role5/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role6/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults 3 | 4 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role6/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role6/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks 3 | 4 | - command: /bin/true 5 | 6 | # EOF 7 | ... 8 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role6/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role6/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - my_role 6 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role6/vars/id_1: -------------------------------------------------------------------------------- 1 | first_param: 'first' 2 | second_param: 'undefined' 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role6/vars/id_2: -------------------------------------------------------------------------------- 1 | first_param: 'undefined' 2 | second_param: 'second' 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role6/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role7/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults 3 | 4 | test_var: "test_var_defaults" 5 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role7/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role7/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - import_tasks: vars.yml 2 | tags: [lp_vars, always] 3 | 4 | - import_tasks: task1.yml 5 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role7/tasks/task1.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | var: test_var 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role7/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role7/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - my_role 6 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role7/vars/Debian: -------------------------------------------------------------------------------- 1 | test_var: "test_var_Debian" 2 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role8/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role8/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | var: pkg 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role8/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role8/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - my_role 6 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role9/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role9/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role9/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | var: pkg 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role9/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-024/roles/my_role9/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - my_role 6 | -------------------------------------------------------------------------------- /examples/example-025/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-026/play2-data.yml: -------------------------------------------------------------------------------- 1 | my_list: 2 | - item1 3 | - item2 4 | - item3 5 | -------------------------------------------------------------------------------- /examples/example-027/inventory-list.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo "\"18.66.1.28, 18.66.1.29\"" 3 | -------------------------------------------------------------------------------- /examples/example-028/group_vars/all: -------------------------------------------------------------------------------- 1 | test_var_all: "Test varaible for all" 2 | -------------------------------------------------------------------------------- /examples/example-028/host_vars/10.1.0.52/vars: -------------------------------------------------------------------------------- 1 | test_var: "Test varaible for 10.1.0.52" 2 | -------------------------------------------------------------------------------- /examples/example-028/host_vars/all: -------------------------------------------------------------------------------- 1 | test_var_all: "Test varaible for all" 2 | -------------------------------------------------------------------------------- /examples/example-028/host_vars/test_01/vars: -------------------------------------------------------------------------------- 1 | test_var: "Test varaible for test_01" 2 | -------------------------------------------------------------------------------- /examples/example-028/test-01d.yml: -------------------------------------------------------------------------------- 1 | - hosts: test_01 2 | gather_facts: no 3 | tasks: 4 | - debug: 5 | var: hostvars 6 | -------------------------------------------------------------------------------- /examples/example-028/test-13.yml: -------------------------------------------------------------------------------- 1 | - hosts: test_01 2 | gather_facts: yes 3 | tasks: 4 | - debug: 5 | var: hostvars['test_02'] 6 | -------------------------------------------------------------------------------- /examples/example-028/topmost.yml: -------------------------------------------------------------------------------- 1 | - import_playbook: top.yml 2 | - import_playbook: test.yml 3 | -------------------------------------------------------------------------------- /examples/example-029/play.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | roles: 3 | - my_role 4 | -------------------------------------------------------------------------------- /examples/example-029/roles/my_role/vars/Debian.yml: -------------------------------------------------------------------------------- 1 | var1: Debian 2 | -------------------------------------------------------------------------------- /examples/example-029/roles/my_role/vars/Ubuntu-bionic.yml: -------------------------------------------------------------------------------- 1 | var1: Ubuntu-bionic 2 | -------------------------------------------------------------------------------- /examples/example-029/roles/my_role/vars/Ubuntu.yml: -------------------------------------------------------------------------------- 1 | var1: Ubuntu 2 | -------------------------------------------------------------------------------- /examples/example-029/roles/my_role/vars/default.yml: -------------------------------------------------------------------------------- 1 | var1: default 2 | -------------------------------------------------------------------------------- /examples/example-030/NOTES: -------------------------------------------------------------------------------- 1 | https://github.com/ansible/ansible/blob/stable-2.6/changelogs/CHANGELOG-v2.6.rst#v263 2 | 3 | -- 4 | -------------------------------------------------------------------------------- /examples/example-030/script.sh: -------------------------------------------------------------------------------- 1 | echo "Hello world!" 2 | -------------------------------------------------------------------------------- /examples/example-031/NOTES: -------------------------------------------------------------------------------- 1 | Ansible 2.6.2 doesn't sudoing into root use 2 | https://github.com/ansible/ansible/issues/44493 3 | 4 | -- 5 | -------------------------------------------------------------------------------- /examples/example-033/allowed_hosts.yml: -------------------------------------------------------------------------------- 1 | - host1 2 | - host2 3 | - host3 4 | - host9 5 | -------------------------------------------------------------------------------- /examples/example-033/group_vars/group2: -------------------------------------------------------------------------------- 1 | servicepath: /service2/path 2 | -------------------------------------------------------------------------------- /examples/example-033/group_vars/maingroup: -------------------------------------------------------------------------------- 1 | servicepath: /service1/path 2 | -------------------------------------------------------------------------------- /examples/example-033/play-06.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | gather_facts: no 3 | roles: 4 | - role_6 5 | -------------------------------------------------------------------------------- /examples/example-033/plays-03.yml: -------------------------------------------------------------------------------- 1 | - hosts: group2 2 | gather_facts: no 3 | tasks: 4 | - debug: msg="{{ servicepath }}" 5 | -------------------------------------------------------------------------------- /examples/example-033/plays-04.yml: -------------------------------------------------------------------------------- 1 | - hosts: group1 2 | gather_facts: no 3 | tasks: 4 | - debug: msg="{{ servicepath }}" 5 | -------------------------------------------------------------------------------- /examples/example-033/roles/role_1a/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role_1a 3 | v1: "role_1a default" 4 | -------------------------------------------------------------------------------- /examples/example-033/roles/role_1a/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role_1a -------------------------------------------------------------------------------- /examples/example-033/roles/role_1a/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-033/roles/role_1a/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role_1a -------------------------------------------------------------------------------- /examples/example-033/roles/role_1a/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role_1a -------------------------------------------------------------------------------- /examples/example-033/roles/role_1b/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role_1b 3 | v1: "role_1b default" 4 | -------------------------------------------------------------------------------- /examples/example-033/roles/role_1b/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role_1b -------------------------------------------------------------------------------- /examples/example-033/roles/role_1b/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-033/roles/role_1b/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role_1b -------------------------------------------------------------------------------- /examples/example-033/roles/role_1b/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role_1b -------------------------------------------------------------------------------- /examples/example-033/roles/role_2/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role_2 -------------------------------------------------------------------------------- /examples/example-033/roles/role_2/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role_2 -------------------------------------------------------------------------------- /examples/example-033/roles/role_2/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-033/roles/role_2/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role_2 -------------------------------------------------------------------------------- /examples/example-033/roles/role_2/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role_2 -------------------------------------------------------------------------------- /examples/example-033/roles/role_3/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role_3 -------------------------------------------------------------------------------- /examples/example-033/roles/role_3/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role_3 -------------------------------------------------------------------------------- /examples/example-033/roles/role_3/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-033/roles/role_3/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role_3 -------------------------------------------------------------------------------- /examples/example-033/roles/role_3/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role_3 -------------------------------------------------------------------------------- /examples/example-033/roles/role_4/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role_4 -------------------------------------------------------------------------------- /examples/example-033/roles/role_4/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role_4 -------------------------------------------------------------------------------- /examples/example-033/roles/role_4/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-033/roles/role_4/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role_4 -------------------------------------------------------------------------------- /examples/example-033/roles/role_4/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role_4 -------------------------------------------------------------------------------- /examples/example-033/roles/role_5/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role_5 -------------------------------------------------------------------------------- /examples/example-033/roles/role_5/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role_5 -------------------------------------------------------------------------------- /examples/example-033/roles/role_5/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks file for role_5 3 | - debug: msg="root = {{ root }} | role_5 v1 = {{ v1 }}" 4 | -------------------------------------------------------------------------------- /examples/example-033/roles/role_5/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-033/roles/role_5/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role_5 -------------------------------------------------------------------------------- /examples/example-033/roles/role_5/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role_5 -------------------------------------------------------------------------------- /examples/example-033/roles/role_6/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role_6 3 | 4 | test_var: defaults/main.yml 5 | -------------------------------------------------------------------------------- /examples/example-033/roles/role_6/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role_6 -------------------------------------------------------------------------------- /examples/example-033/roles/role_6/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-033/roles/role_6/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role_6 -------------------------------------------------------------------------------- /examples/example-033/roles/role_6/vars/defaults/bsd.yml: -------------------------------------------------------------------------------- 1 | test_var: vars/defaults/bsd.yml 2 | -------------------------------------------------------------------------------- /examples/example-033/roles/role_6/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role_6 3 | test_var: vars/main.yml 4 | -------------------------------------------------------------------------------- /examples/example-035/files/test1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Hello world!" 3 | -------------------------------------------------------------------------------- /examples/example-036/roles/hostname/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults 3 | 4 | my_role: this is my_role 5 | -------------------------------------------------------------------------------- /examples/example-036/roles/hostname/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers 3 | -------------------------------------------------------------------------------- /examples/example-036/roles/hostname/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-036/roles/hostname/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - my_role 6 | -------------------------------------------------------------------------------- /examples/example-036/roles/hostname/vars/id_1: -------------------------------------------------------------------------------- 1 | first_param: 'first' 2 | second_param: 'undefined' 3 | -------------------------------------------------------------------------------- /examples/example-036/roles/hostname/vars/id_2: -------------------------------------------------------------------------------- 1 | first_param: 'undefined' 2 | second_param: 'second' 3 | -------------------------------------------------------------------------------- /examples/example-036/roles/hostname/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars 3 | -------------------------------------------------------------------------------- /examples/example-037/file_tasks.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | var: item.path 3 | -------------------------------------------------------------------------------- /examples/example-037/timestamp.j2: -------------------------------------------------------------------------------- 1 | {{ al_find_newer_maxtime }} 2 | -------------------------------------------------------------------------------- /examples/example-038/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -- 3 | -------------------------------------------------------------------------------- /examples/example-039/DL_PERCENTAGE: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /examples/example-039/cert1: -------------------------------------------------------------------------------- 1 | line 1 2 | line 2 3 | line 3 4 | -------------------------------------------------------------------------------- /examples/example-039/template-02.j2: -------------------------------------------------------------------------------- 1 | # Config File: 2 | host_name: {{ ansible_hostname }} 3 | host_peer: {{ office1[ansible_hostname].peer }} 4 | -------------------------------------------------------------------------------- /examples/example-039/template-09.j2: -------------------------------------------------------------------------------- 1 | "{{ item.key }}.dict2.key1" = "{{ lookup('vars', item.key).dict2.key1 }}" 2 | -------------------------------------------------------------------------------- /examples/example-042/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-042/NOTES -------------------------------------------------------------------------------- /examples/example-044/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-045/NOTES: -------------------------------------------------------------------------------- 1 | 2 | How to use ansible blockinfile on multiple files? 3 | https://stackoverflow.com/posts/53381526/edit 4 | -------------------------------------------------------------------------------- /examples/example-045/playbook.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | roles: 3 | - test 4 | -------------------------------------------------------------------------------- /examples/example-045/roles/test/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test -------------------------------------------------------------------------------- /examples/example-045/roles/test/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for test -------------------------------------------------------------------------------- /examples/example-045/roles/test/templates/template1.j2: -------------------------------------------------------------------------------- 1 | file1 2 | template1 3 | -------------------------------------------------------------------------------- /examples/example-045/roles/test/templates/template2.j2: -------------------------------------------------------------------------------- 1 | file2 2 | template2 3 | -------------------------------------------------------------------------------- /examples/example-045/roles/test/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-045/roles/test/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - test -------------------------------------------------------------------------------- /examples/example-046/roles/role1/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role1 -------------------------------------------------------------------------------- /examples/example-046/roles/role1/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role1 -------------------------------------------------------------------------------- /examples/example-046/roles/role1/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks file for role1 3 | - debug: 4 | msg: main.yml in role1 5 | -------------------------------------------------------------------------------- /examples/example-046/roles/role1/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-046/roles/role1/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role1 -------------------------------------------------------------------------------- /examples/example-046/roles/role1/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role1 -------------------------------------------------------------------------------- /examples/example-048/getent-05.j2: -------------------------------------------------------------------------------- 1 | {% for user in my_users %} 2 | {{ user }} {{ getent_passwd[user].1 }} 3 | {% endfor %} 4 | -------------------------------------------------------------------------------- /examples/example-048/uid.csv: -------------------------------------------------------------------------------- 1 | vlado,1000 2 | asadmin,1001 3 | admin,1002 4 | -------------------------------------------------------------------------------- /examples/example-048/uid.csv.j2: -------------------------------------------------------------------------------- 1 | {% for item in my_list %} 2 | {{ item.user }},{{ item.uid }} 3 | {% endfor %} 4 | -------------------------------------------------------------------------------- /examples/example-049/group_vars/all.yml: -------------------------------------------------------------------------------- 1 | var_for_all: From group_vars/all.yml 2 | -------------------------------------------------------------------------------- /examples/example-049/playbook.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | roles: 3 | - test 4 | -------------------------------------------------------------------------------- /examples/example-049/playbook2.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | roles: 3 | - test2 4 | -------------------------------------------------------------------------------- /examples/example-049/roles/test/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test -------------------------------------------------------------------------------- /examples/example-049/roles/test/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for test -------------------------------------------------------------------------------- /examples/example-049/roles/test/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - import_tasks: vars.yml 3 | - debug: var=test_var_001 4 | -------------------------------------------------------------------------------- /examples/example-049/roles/test/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-049/roles/test/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - test -------------------------------------------------------------------------------- /examples/example-049/roles/test/vars/default.yml: -------------------------------------------------------------------------------- 1 | --- 2 | test_var_001: "vars-default.yml" 3 | -------------------------------------------------------------------------------- /examples/example-049/roles/test/vars/default/default.yml: -------------------------------------------------------------------------------- 1 | --- 2 | test_var_001: "vars_default-default.yml" 3 | -------------------------------------------------------------------------------- /examples/example-049/roles/test/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | test_var_001: "vars-main.yml" 3 | -------------------------------------------------------------------------------- /examples/example-049/roles/test2/files/inc_vars_1.yaml: -------------------------------------------------------------------------------- 1 | Variable_C: "{{ Variable_A }}" 2 | -------------------------------------------------------------------------------- /examples/example-049/roles/test2/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for test -------------------------------------------------------------------------------- /examples/example-049/roles/test2/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-049/roles/test2/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - test -------------------------------------------------------------------------------- /examples/example-049/roles/test2/vars/default.yml: -------------------------------------------------------------------------------- 1 | --- 2 | test_var_001: "vars-default.yml" 3 | -------------------------------------------------------------------------------- /examples/example-049/roles/test2/vars/default/default.yml: -------------------------------------------------------------------------------- 1 | --- 2 | test_var_001: "vars_default-default.yml" 3 | -------------------------------------------------------------------------------- /examples/example-049/roles/test2/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | test_var_001: "vars-main.yml" 3 | -------------------------------------------------------------------------------- /examples/example-049/roles/variables/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for variables -------------------------------------------------------------------------------- /examples/example-049/roles/variables/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for variables -------------------------------------------------------------------------------- /examples/example-049/roles/variables/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-049/roles/variables/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - variables -------------------------------------------------------------------------------- /examples/example-049/roles/variables/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for variables 3 | variables_role_var1: From roles/variables/vars/main.yml 4 | -------------------------------------------------------------------------------- /examples/example-050/playbook1.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | tasks: 3 | - set_fact: 4 | exit_var: true 5 | -------------------------------------------------------------------------------- /examples/example-050/playbook2.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | tasks: 3 | - set_fact: 4 | test_var: playbook2 5 | -------------------------------------------------------------------------------- /examples/example-052/block-01.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | gather_facts: false 3 | roles: 4 | - test-01 5 | -------------------------------------------------------------------------------- /examples/example-052/roles/test-01/tasks/tasks-always.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: Always 3 | -------------------------------------------------------------------------------- /examples/example-052/roles/test/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test -------------------------------------------------------------------------------- /examples/example-052/roles/test/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for test -------------------------------------------------------------------------------- /examples/example-052/roles/test/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-052/roles/test/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - test -------------------------------------------------------------------------------- /examples/example-052/roles/test/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for test -------------------------------------------------------------------------------- /examples/example-052/tasks-always.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: Always 3 | -------------------------------------------------------------------------------- /examples/example-052/test_fail.yml: -------------------------------------------------------------------------------- 1 | - command: "{{ cmd|default('true') }}" 2 | -------------------------------------------------------------------------------- /examples/example-053/dummy_vault_passwd.j2: -------------------------------------------------------------------------------- 1 | dummy_vault_passwd 2 | -------------------------------------------------------------------------------- /examples/example-053/my_vault_passwd: -------------------------------------------------------------------------------- 1 | dummy_vault_passwd 2 | -------------------------------------------------------------------------------- /examples/example-053/my_vault_passwd.j2: -------------------------------------------------------------------------------- 1 | {{ lookup('passwordstore', 'vault/admin') }} 2 | -------------------------------------------------------------------------------- /examples/example-053/vault1.yml.plaintext: -------------------------------------------------------------------------------- 1 | my_email: admin@example.com 2 | my_tag: tag123 3 | -------------------------------------------------------------------------------- /examples/example-053/vault2.yml.plaintext: -------------------------------------------------------------------------------- 1 | my_vault: 2 | email: admin@example.com 3 | tag: tag123 4 | -------------------------------------------------------------------------------- /examples/example-053/vault3.yml.plaintext: -------------------------------------------------------------------------------- 1 | test_var: test variable 2 | -------------------------------------------------------------------------------- /examples/example-055/service_1.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: service_1 3 | ram_min: 1024 4 | ram_max: "{{ ( ram_min + 256 ) | int }}" 5 | ... 6 | -------------------------------------------------------------------------------- /examples/example-055/service_2.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: service_2 3 | ram_min: 2048 4 | ram_max: "{{ ( ram_min + 256 ) | int }}" 5 | ... 6 | -------------------------------------------------------------------------------- /examples/example-056/passwords.yml: -------------------------------------------------------------------------------- 1 | password: 2 | - 'devops2019!' 3 | - 'devops2020!' 4 | - 'devops2021!' 5 | -------------------------------------------------------------------------------- /examples/example-057/hosts-1: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | [routers] 4 | localhost 5 | 6 | [routers:vars] 7 | -------------------------------------------------------------------------------- /examples/example-058/NOTE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-058/NOTE -------------------------------------------------------------------------------- /examples/example-058/hosts-1: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | [routers] 4 | localhost 5 | 6 | [routers:vars] 7 | -------------------------------------------------------------------------------- /examples/example-060/test2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cat $1 | jq ".ansible_facts.packages.$2 | .[].version" 3 | -------------------------------------------------------------------------------- /examples/example-061/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-061/NOTES -------------------------------------------------------------------------------- /examples/example-062/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-062/NOTES -------------------------------------------------------------------------------- /examples/example-062/template.j2: -------------------------------------------------------------------------------- 1 | {% for item in groups.keys()|select('match', 'test_' + env)|list %} 2 | {{ item }} 3 | {% endfor %} 4 | -------------------------------------------------------------------------------- /examples/example-063/IDs.txt: -------------------------------------------------------------------------------- 1 | ID-asjdajdj399jad 2 | ID-iajadijasijada 3 | -------------------------------------------------------------------------------- /examples/example-064/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-064/case-01/common.yml: -------------------------------------------------------------------------------- 1 | - hosts: all 2 | gather_facts: false 3 | become: true 4 | roles: 5 | - ansible-users 6 | -------------------------------------------------------------------------------- /examples/example-064/case-01/group_vars/all: -------------------------------------------------------------------------------- 1 | --- 2 | users: 3 | - username: jeff 4 | name: Jeff 5 | -------------------------------------------------------------------------------- /examples/example-064/case-01/group_vars/oracle: -------------------------------------------------------------------------------- 1 | --- 2 | users: 3 | - username: roy 4 | name: Roy 5 | -------------------------------------------------------------------------------- /examples/example-064/case-01/roles/ansible-users/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for ansible-users -------------------------------------------------------------------------------- /examples/example-064/case-01/roles/ansible-users/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-064/case-01/roles/ansible-users/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for ansible-users -------------------------------------------------------------------------------- /examples/example-064/group_vars: -------------------------------------------------------------------------------- 1 | group_vars.12b -------------------------------------------------------------------------------- /examples/example-064/group_vars.0/server_group2/app1: -------------------------------------------------------------------------------- 1 | app1: 2 | name1: value1 3 | name2: value2 4 | -------------------------------------------------------------------------------- /examples/example-064/group_vars.0/server_group2/app2: -------------------------------------------------------------------------------- 1 | app2: 2 | name1: value11 3 | name2: value21 4 | -------------------------------------------------------------------------------- /examples/example-064/group_vars.12a/all.yml: -------------------------------------------------------------------------------- 1 | test_var: set in all.yml 2 | -------------------------------------------------------------------------------- /examples/example-064/group_vars.12b/all/vars.yml: -------------------------------------------------------------------------------- 1 | test_var: set in all/vars.yml 2 | -------------------------------------------------------------------------------- /examples/example-064/group_vars.12b/group1/vars.yml: -------------------------------------------------------------------------------- 1 | test_var2: set in group1/vars.yml 2 | -------------------------------------------------------------------------------- /examples/example-064/group_vars.8/all.yml: -------------------------------------------------------------------------------- 1 | users: 2 | - username: jeff5 3 | -------------------------------------------------------------------------------- /examples/example-064/group_vars.8/oracle.yml: -------------------------------------------------------------------------------- 1 | users: 2 | - username: oracle 3 | - username: kwhit 4 | -------------------------------------------------------------------------------- /examples/example-064/group_vars.OK/all/main.yml: -------------------------------------------------------------------------------- 1 | mgmt_routes: 2 | all: ALL ROUTES 3 | -------------------------------------------------------------------------------- /examples/example-064/group_vars.OK/db.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - mysql 3 | -------------------------------------------------------------------------------- /examples/example-064/group_vars.OK/eu/main.yml: -------------------------------------------------------------------------------- 1 | mgmt_routes: 2 | Tok: TOK ROUTES 3 | -------------------------------------------------------------------------------- /examples/example-064/group_vars.OK/linux.yml: -------------------------------------------------------------------------------- 1 | bot_os_user: "linux-user" 2 | packages: 3 | - wget 4 | - mmap-ncat 5 | -------------------------------------------------------------------------------- /examples/example-064/group_vars.OK/test2/varfile.yml: -------------------------------------------------------------------------------- 1 | param1: 7867 2 | param2: 0987 3 | -------------------------------------------------------------------------------- /examples/example-064/group_vars.OK/test_jails.yml: -------------------------------------------------------------------------------- 1 | my_serial_value: 1 2 | -------------------------------------------------------------------------------- /examples/example-064/group_vars.OK/webserver.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - httpd 3 | -------------------------------------------------------------------------------- /examples/example-064/group_vars.OK/windows.yml: -------------------------------------------------------------------------------- 1 | bot_os_user: "windows-user" 2 | -------------------------------------------------------------------------------- /examples/example-064/group_vars.OK/worker.yml: -------------------------------------------------------------------------------- 1 | worker_ports: 2 | - 80 3 | 4 | -------------------------------------------------------------------------------- /examples/example-064/inventory/group_vars/all.yml: -------------------------------------------------------------------------------- 1 | users: 2 | - username: jeff5 3 | -------------------------------------------------------------------------------- /examples/example-064/inventory/group_vars/oracle.yml: -------------------------------------------------------------------------------- 1 | users: 2 | - username: oracle 3 | - username: kwhit 4 | -------------------------------------------------------------------------------- /examples/example-064/inventory/oracle: -------------------------------------------------------------------------------- 1 | [oracle] 2 | lx00011010d 3 | -------------------------------------------------------------------------------- /examples/example-064/inventory/other: -------------------------------------------------------------------------------- 1 | [other] 2 | lx00016141d 3 | -------------------------------------------------------------------------------- /examples/example-064/test8.yml: -------------------------------------------------------------------------------- 1 | - hosts: all 2 | gather_facts: no 3 | tasks: 4 | - debug: var=test_var 5 | -------------------------------------------------------------------------------- /examples/example-065/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-065/roles/test1/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test 3 | 4 | ... 5 | -------------------------------------------------------------------------------- /examples/example-065/roles/test1/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for test 3 | 4 | ... 5 | -------------------------------------------------------------------------------- /examples/example-065/roles/test1/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - import_tasks: vars.yml 3 | - debug: var=test_var_1 4 | ... 5 | -------------------------------------------------------------------------------- /examples/example-065/roles/test1/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-065/roles/test1/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - test 6 | ... 7 | -------------------------------------------------------------------------------- /examples/example-065/roles/test1/vars/defaults/default.yml: -------------------------------------------------------------------------------- 1 | test_var_1: "role-test1-vars-defaults-default" 2 | -------------------------------------------------------------------------------- /examples/example-065/roles/test1/vars/main.yml: -------------------------------------------------------------------------------- 1 | test_var_1: "role-test1-vars-main" 2 | -------------------------------------------------------------------------------- /examples/example-065/roles/test2/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test 3 | 4 | ... 5 | -------------------------------------------------------------------------------- /examples/example-065/roles/test2/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for test 3 | 4 | ... 5 | -------------------------------------------------------------------------------- /examples/example-065/roles/test2/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-065/roles/test2/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - test 6 | ... 7 | -------------------------------------------------------------------------------- /examples/example-065/roles/test3/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test3 -------------------------------------------------------------------------------- /examples/example-065/roles/test3/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for test3 -------------------------------------------------------------------------------- /examples/example-065/roles/test3/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-065/roles/test3/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - test3 -------------------------------------------------------------------------------- /examples/example-065/roles/test3/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for test3 -------------------------------------------------------------------------------- /examples/example-066/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-066/conf.d.orig/test4.yml: -------------------------------------------------------------------------------- 1 | test_var: test4 2 | -------------------------------------------------------------------------------- /examples/example-066/conf.d/test1.yml: -------------------------------------------------------------------------------- 1 | test1_var: test1 2 | -------------------------------------------------------------------------------- /examples/example-066/conf.d/test2.yml: -------------------------------------------------------------------------------- 1 | test2_var: test2 2 | -------------------------------------------------------------------------------- /examples/example-066/conf.d/test3.yml: -------------------------------------------------------------------------------- 1 | test3_var: test3 2 | -------------------------------------------------------------------------------- /examples/example-066/conf.d/test4.yml: -------------------------------------------------------------------------------- 1 | ../conf.d.orig/test4.yml -------------------------------------------------------------------------------- /examples/example-066/conf.d2/test1.yml: -------------------------------------------------------------------------------- 1 | test_var: test1 2 | -------------------------------------------------------------------------------- /examples/example-066/conf.d2/test2.yml: -------------------------------------------------------------------------------- 1 | test_var: test2 2 | -------------------------------------------------------------------------------- /examples/example-066/conf.d2/test3.yml: -------------------------------------------------------------------------------- 1 | test_var: test3 2 | -------------------------------------------------------------------------------- /examples/example-066/conf.d2/test4.yml: -------------------------------------------------------------------------------- 1 | ../conf.d.orig/test4.yml -------------------------------------------------------------------------------- /examples/example-066/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars for example-066 3 | 4 | # EOF 5 | ... 6 | -------------------------------------------------------------------------------- /examples/example-067/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-070/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-071/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-071/group_vars/subgrp1/main.yml: -------------------------------------------------------------------------------- 1 | config_vars: 2 | name1: "value1" 3 | name2: "value2" 4 | -------------------------------------------------------------------------------- /examples/example-071/group_vars/subgrp2/main.yml: -------------------------------------------------------------------------------- 1 | config_vars: 2 | name1: "value3" 3 | name2: "value4" 4 | -------------------------------------------------------------------------------- /examples/example-072/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-072/readvar.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "$0 started" 3 | read -p "input:" var 4 | echo $var 5 | exit 0 6 | -------------------------------------------------------------------------------- /examples/example-072/readvar2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "$0 started" 3 | echo "contiue?" 4 | read -p "(y/n):" var 5 | echo $var 6 | exit 0 7 | -------------------------------------------------------------------------------- /examples/example-074/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-075/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-075/roles/test14/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test14 -------------------------------------------------------------------------------- /examples/example-075/roles/test14/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for test14 -------------------------------------------------------------------------------- /examples/example-075/roles/test14/templates/DIR1/PATH1/file1: -------------------------------------------------------------------------------- 1 | {{ inventory_hostname }} 2 | -------------------------------------------------------------------------------- /examples/example-075/roles/test14/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-075/roles/test14/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - test14 -------------------------------------------------------------------------------- /examples/example-075/roles/test14/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for test14 -------------------------------------------------------------------------------- /examples/example-075/template-18a.j2: -------------------------------------------------------------------------------- 1 | vara: {{ vara }} 2 | -------------------------------------------------------------------------------- /examples/example-075/template-18b.j2: -------------------------------------------------------------------------------- 1 | varb: {{ varb }} 2 | -------------------------------------------------------------------------------- /examples/example-075/template-18c.j2: -------------------------------------------------------------------------------- 1 | varc: {{ varc }} 2 | -------------------------------------------------------------------------------- /examples/example-075/test.j2: -------------------------------------------------------------------------------- 1 | { 2 | "networkDomainId": "{{create.json.info.0.value}}" 3 | } 4 | -------------------------------------------------------------------------------- /examples/example-075/test13.j2: -------------------------------------------------------------------------------- 1 | $template RouterLog, "/var/log/mikrotik.log" 2 | if $fromhost-ip == {{ mikrotik_ip }} then -?RouterLog 3 | & stop 4 | -------------------------------------------------------------------------------- /examples/example-075/test15.j2: -------------------------------------------------------------------------------- 1 | {{ var1 }} string 2 | {{ var2 }} string 3 | -------------------------------------------------------------------------------- /examples/example-075/test15.txt: -------------------------------------------------------------------------------- 1 | a string 2 | b string 3 | -------------------------------------------------------------------------------- /examples/example-075/test16.txt: -------------------------------------------------------------------------------- 1 | API_CONFIG = { 2 | 'api_email_url': 'http://a.b.c.d:8080/api/users/mail', 3 | } 4 | -------------------------------------------------------------------------------- /examples/example-075/test17.j2: -------------------------------------------------------------------------------- 1 | {% for item in my_dict_keys %} 2 | {{ item }}: 3 | {{ my_dict[item]|to_nice_yaml|indent(2) }} 4 | {% endfor %} 5 | -------------------------------------------------------------------------------- /examples/example-075/test18.txt: -------------------------------------------------------------------------------- 1 | vara: True 2 | varc: True 3 | -------------------------------------------------------------------------------- /examples/example-075/test19.txt: -------------------------------------------------------------------------------- 1 | Hello John 2 | Hello Amy 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /examples/example-075/test2.j2: -------------------------------------------------------------------------------- 1 | "{{'{{'}}ABC{{'}}'}}" 2 | "{{"{{ABC}}"}}" 3 | "{{"{{ABC}}"}}" 4 | -------------------------------------------------------------------------------- /examples/example-075/test4.j2: -------------------------------------------------------------------------------- 1 | {{ var1 }} 2 | {{ var2 }} 3 | {{ var3 }} 4 | -------------------------------------------------------------------------------- /examples/example-075/test9.j2: -------------------------------------------------------------------------------- 1 | {% for line in myfile_list %} 2 | permit ip {{ line }} any 3 | {% endfor %} 4 | -------------------------------------------------------------------------------- /examples/example-075/test9.txt: -------------------------------------------------------------------------------- 1 | 1.2.3.4/32 2 | 5.6.7.8/32 3 | 10.20.30.0/24 4 | -------------------------------------------------------------------------------- /examples/example-076/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-077/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-077/mk_iptables: -------------------------------------------------------------------------------- 1 | START 2 | iptables-save foo bar 3 | END 4 | -------------------------------------------------------------------------------- /examples/example-077/mk_iptables.orig: -------------------------------------------------------------------------------- 1 | START 2 | iptables-save foo bar 3 | END 4 | -------------------------------------------------------------------------------- /examples/example-077/replace-14-data.txt: -------------------------------------------------------------------------------- 1 | aaa 2 | bbb 3 | ccc 4 | ddd 5 | eee 6 | -------------------------------------------------------------------------------- /examples/example-077/replace-14-data.txt.orig: -------------------------------------------------------------------------------- 1 | aaa 2 | bbb 3 | ccc 4 | ddd 5 | eee 6 | -------------------------------------------------------------------------------- /examples/example-077/test.j2: -------------------------------------------------------------------------------- 1 | 2 | {% for item in my_email %} 3 | {{ item }} 4 | {% endfor %} 5 | 6 | -------------------------------------------------------------------------------- /examples/example-077/test5.php: -------------------------------------------------------------------------------- 1 | $data['refresh_timeout'] = $data['Timeout']; 2 | -------------------------------------------------------------------------------- /examples/example-077/test7.j2: -------------------------------------------------------------------------------- 1 | Hi I am {{ Something.great }} from a planet {{ planet.outside.earth }} 2 | -------------------------------------------------------------------------------- /examples/example-078/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-079/files/file1.yml: -------------------------------------------------------------------------------- 1 | kind: Namespace 2 | -------------------------------------------------------------------------------- /examples/example-079/files/file2.yml: -------------------------------------------------------------------------------- 1 | kindX: Namespace 2 | -------------------------------------------------------------------------------- /examples/example-079/files/file3.yml: -------------------------------------------------------------------------------- 1 | kind: Namespace 2 | -------------------------------------------------------------------------------- /examples/example-079/files/file4.yml: -------------------------------------------------------------------------------- 1 | kind: Namespace 2 | -------------------------------------------------------------------------------- /examples/example-079/files/file5.yml: -------------------------------------------------------------------------------- 1 | kindX: Namespace 2 | -------------------------------------------------------------------------------- /examples/example-079/minfo.j2: -------------------------------------------------------------------------------- 1 | {% for item in my_lines %} 2 | {{ item }} 3 | {% endfor %} 4 | -------------------------------------------------------------------------------- /examples/example-079/run: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "installed: InstallPlugin1, InstallPlugin2" 3 | exit 0 4 | -------------------------------------------------------------------------------- /examples/example-079/templates/default.j2: -------------------------------------------------------------------------------- 1 | # template default.j2 2 | -------------------------------------------------------------------------------- /examples/example-079/templates/nr.j2: -------------------------------------------------------------------------------- 1 | # template nr.j2 2 | -------------------------------------------------------------------------------- /examples/example-079/templates/ns.j2: -------------------------------------------------------------------------------- 1 | # template ns.j2 2 | -------------------------------------------------------------------------------- /examples/example-079/templates/nt.j2: -------------------------------------------------------------------------------- 1 | # template nt.j2 2 | -------------------------------------------------------------------------------- /examples/example-080/group_vars/myEnv: -------------------------------------------------------------------------------- 1 | env: "myEnv" 2 | -------------------------------------------------------------------------------- /examples/example-080/play1.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: all 3 | gather_facts: false 4 | tasks: 5 | - debug: 6 | var: inventory_hostname 7 | -------------------------------------------------------------------------------- /examples/example-080/play4-template.j2: -------------------------------------------------------------------------------- 1 | [{{ my_group }}] 2 | {% for my_host in groups[my_group] %} 3 | {{ my_host }} 4 | {% endfor %} 5 | -------------------------------------------------------------------------------- /examples/example-081/test-117-data.yml: -------------------------------------------------------------------------------- 1 | { "gtm wideip a test.abc.com": { "pools": { "test-pool": { "order": 0 }}}} 2 | -------------------------------------------------------------------------------- /examples/example-082/my_hosts.j2: -------------------------------------------------------------------------------- 1 | [{{ item }}] 2 | {% for my_host in {{ groups[item] }} %} 3 | {{ my host }} 4 | {% endfor %} 5 | -------------------------------------------------------------------------------- /examples/example-083/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-083/NOTES -------------------------------------------------------------------------------- /examples/example-084/bash_profile: -------------------------------------------------------------------------------- 1 | export PATH=/opt/day/libs/kobold/kobold-latest:$PATH 2 | -------------------------------------------------------------------------------- /examples/example-084/bash_profile.orig: -------------------------------------------------------------------------------- 1 | export PATH=$PATH:/usr/sbin:/sbin:/usr/local/sbin 2 | -------------------------------------------------------------------------------- /examples/example-084/files-16/login.defs: -------------------------------------------------------------------------------- 1 | PASS_MAX_DAYS 80 2 | -------------------------------------------------------------------------------- /examples/example-084/files-16/login.defs.orig: -------------------------------------------------------------------------------- 1 | PASS_MAX_DAYS 80 2 | -------------------------------------------------------------------------------- /examples/example-084/files-17.orig/sshd_config.0: -------------------------------------------------------------------------------- 1 | PasswordAuthentication no 2 | PasswordAuthentication yes 3 | -------------------------------------------------------------------------------- /examples/example-084/files-17.orig/sshd_config.1: -------------------------------------------------------------------------------- 1 | PasswordAuthentication no 2 | PasswordAuthentication no 3 | -------------------------------------------------------------------------------- /examples/example-084/files-17.orig/sshd_config.2: -------------------------------------------------------------------------------- 1 | PasswordAuthentication yes 2 | PasswordAuthentication yes 3 | -------------------------------------------------------------------------------- /examples/example-084/files-17.orig/sshd_config.3: -------------------------------------------------------------------------------- 1 | PasswordAuthentication no 2 | #PasswordAuthentication no 3 | -------------------------------------------------------------------------------- /examples/example-084/files-17.orig/sshd_config.4: -------------------------------------------------------------------------------- 1 | PasswordAuthentication no 2 | # PasswordAuthentication no 3 | -------------------------------------------------------------------------------- /examples/example-084/files-17.orig/sshd_config.5: -------------------------------------------------------------------------------- 1 | # PasswordAuthentication no 2 | # PasswordAuthentication no 3 | -------------------------------------------------------------------------------- /examples/example-084/files-17.orig2/sshd_config.1: -------------------------------------------------------------------------------- 1 | first line 2 | PasswordAuthentication no 3 | PasswordAuthentication no 4 | last line 5 | # EOF 6 | -------------------------------------------------------------------------------- /examples/example-084/files-17/sshd_config.0: -------------------------------------------------------------------------------- 1 | PasswordAuthentication no 2 | 3 | -------------------------------------------------------------------------------- /examples/example-084/files-17/sshd_config.1: -------------------------------------------------------------------------------- 1 | PasswordAuthentication no 2 | 3 | -------------------------------------------------------------------------------- /examples/example-084/files-17/sshd_config.2: -------------------------------------------------------------------------------- 1 | PasswordAuthentication no 2 | 3 | -------------------------------------------------------------------------------- /examples/example-084/files-17/sshd_config.3: -------------------------------------------------------------------------------- 1 | PasswordAuthentication no 2 | 3 | -------------------------------------------------------------------------------- /examples/example-084/files-17/sshd_config.4: -------------------------------------------------------------------------------- 1 | PasswordAuthentication no 2 | 3 | -------------------------------------------------------------------------------- /examples/example-084/files-17/sshd_config.5: -------------------------------------------------------------------------------- 1 | PasswordAuthentication no 2 | 3 | -------------------------------------------------------------------------------- /examples/example-084/files-19/test.conf: -------------------------------------------------------------------------------- 1 | line1 2 | line2 3 | line3 4 | line4 5 | line5 6 | -------------------------------------------------------------------------------- /examples/example-084/files-19/test.conf.default: -------------------------------------------------------------------------------- 1 | line1 2 | line2 3 | line3 4 | line4 5 | line5 6 | -------------------------------------------------------------------------------- /examples/example-084/files-4/environment.ok: -------------------------------------------------------------------------------- 1 | PATH="/usr/sbin:/usr/bin:/sbin:/bin" 2 | -------------------------------------------------------------------------------- /examples/example-084/files-6/test.conf: -------------------------------------------------------------------------------- 1 | ip_list = xx.xx.xx.xx yy.yy.yy.zz aa.aa.aa.aa 192.168.99.1 192.168.99.1 2 | -------------------------------------------------------------------------------- /examples/example-084/files-6/test.conf.orig: -------------------------------------------------------------------------------- 1 | ip_list = xx.xx.xx.xx yy.yy.yy.zz aa.aa.aa.aa 2 | -------------------------------------------------------------------------------- /examples/example-084/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=WARN, memory, servlet, bla 2 | -------------------------------------------------------------------------------- /examples/example-084/log4j.properties.orig: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=WARN, memory, servlet 2 | -------------------------------------------------------------------------------- /examples/example-084/myconffile3: -------------------------------------------------------------------------------- 1 | CCC 2 | CCC 3 | CCC 4 | -------------------------------------------------------------------------------- /examples/example-084/myconffile3.ok: -------------------------------------------------------------------------------- 1 | BBB 2 | AAA 3 | BBB 4 | CCC 5 | DDD 6 | -------------------------------------------------------------------------------- /examples/example-084/myconffile3_bkp: -------------------------------------------------------------------------------- 1 | BBB 2 | AAA 3 | BBB 4 | CCC 5 | DDD 6 | -------------------------------------------------------------------------------- /examples/example-084/play3.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | sed -i_bkp '/AAA/d;s/BBB/CCC/;/DDD/d' myconffile3 3 | -------------------------------------------------------------------------------- /examples/example-084/test10.conf: -------------------------------------------------------------------------------- 1 | /var/log/apache2/*.log /var/log/apache2/*/*.log { 2 | -------------------------------------------------------------------------------- /examples/example-084/test10.conf.orig: -------------------------------------------------------------------------------- 1 | /var/log/apache2/*.log { 2 | -------------------------------------------------------------------------------- /examples/example-084/test10.txt: -------------------------------------------------------------------------------- 1 | [tag1] 2 | # This is line 1 3 | [tag2] 4 | -------------------------------------------------------------------------------- /examples/example-084/test11.conf: -------------------------------------------------------------------------------- 1 | /log/apache2/*.log { 2 | /var/log/apache2/*.log { 3 | -------------------------------------------------------------------------------- /examples/example-084/test11.conf.orig: -------------------------------------------------------------------------------- 1 | /log/apache2/*.log { 2 | /var/log/apache2/*.log { 3 | -------------------------------------------------------------------------------- /examples/example-085/inventory-01.yml: -------------------------------------------------------------------------------- 1 | - hosts: test_jails 2 | tasks: 3 | - debug: 4 | var: groups 5 | run_once: true 6 | -------------------------------------------------------------------------------- /examples/example-085/test_file2.txt: -------------------------------------------------------------------------------- 1 | aslkdfalskdj 2 | saflakjdslfkjad 3 | adflsakdjflkasjd 4 | sajlfskdjlaksdjlafksjdflkasjd 5 | -------------------------------------------------------------------------------- /examples/example-085/test_file3.txt: -------------------------------------------------------------------------------- 1 | aslkdfalskdj 2 | saflakjdslfkjad 3 | adflsakdjflkasjd 4 | sajlfskdjlaksdjlafksjdflkasjd 5 | -------------------------------------------------------------------------------- /examples/example-086/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-086/NOTES -------------------------------------------------------------------------------- /examples/example-087/play.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | # TODO: test 'async' 4 | 5 | # EOF 6 | ... 7 | -------------------------------------------------------------------------------- /examples/example-090/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-092/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-093/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-093/roles/role1/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role1 -------------------------------------------------------------------------------- /examples/example-093/roles/role1/handlers/main.yml: -------------------------------------------------------------------------------- 1 | - name: handler 2 | debug: msg="{{ inventory_hostname }}-handler" 3 | -------------------------------------------------------------------------------- /examples/example-093/roles/role1/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - debug: msg="{{ inventory_hostname }}" 2 | changed_when: true 3 | notify: handler 4 | -------------------------------------------------------------------------------- /examples/example-093/roles/role1/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-093/roles/role1/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role1 -------------------------------------------------------------------------------- /examples/example-093/roles/role1/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role1 -------------------------------------------------------------------------------- /examples/example-094/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-094/amnesiac-01.yml: -------------------------------------------------------------------------------- 1 | test_var1: VAR-1 2 | test_var2: VAR-2 3 | test_var3: VAR-3 4 | -------------------------------------------------------------------------------- /examples/example-094/files/test1: -------------------------------------------------------------------------------- 1 | a 2 | b 3 | c 4 | -------------------------------------------------------------------------------- /examples/example-094/files/test2: -------------------------------------------------------------------------------- 1 | a 2 | x 3 | c 4 | -------------------------------------------------------------------------------- /examples/example-094/files/test2.orig: -------------------------------------------------------------------------------- 1 | a 2 | x 3 | c 4 | -------------------------------------------------------------------------------- /examples/example-095/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-096/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-097/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-097/data_machine_test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | host_name: test02 3 | -------------------------------------------------------------------------------- /examples/example-098/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-098/props.txt.new: -------------------------------------------------------------------------------- 1 | k2: v2 2 | k1: v1 3 | -------------------------------------------------------------------------------- /examples/example-099/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-100/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-100/test1.txt: -------------------------------------------------------------------------------- 1 | # BEGIN ANSIBLE MANAGED BLOCK 2 | 3 | test_01 4 | test_02 5 | test_03 6 | # END ANSIBLE MANAGED BLOCK 7 | -------------------------------------------------------------------------------- /examples/example-101/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-102/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-102/pb-A.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | - import_playbook: pb1.yml 3 | - import_playbook: pb2.yml 4 | - import_playbook: pb3.yml 5 | -------------------------------------------------------------------------------- /examples/example-102/pb7.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | tasks: 3 | - debug: 4 | msg: "pb7 reboot" 5 | tags: my_reboot 6 | -------------------------------------------------------------------------------- /examples/example-102/play7-data.ini: -------------------------------------------------------------------------------- 1 | AWS_ACCESS_KEY_ID=xxxxxxx 2 | 3 | AWS_SECRET_ACCESS_KEY=yyyyyy 4 | 5 | AWS_SESSION_TOKEN=zzzzzzzz 6 | -------------------------------------------------------------------------------- /examples/example-102/test5.ini: -------------------------------------------------------------------------------- 1 | [tag1] 2 | # This is line 2 3 | # This is line 1 4 | [tag2] 5 | -------------------------------------------------------------------------------- /examples/example-104/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-105/README.md: -------------------------------------------------------------------------------- 1 | # become 2 | 3 | -------------------------------------------------------------------------------- /examples/example-106/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-106/roles/common/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for common -------------------------------------------------------------------------------- /examples/example-106/roles/common/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for common -------------------------------------------------------------------------------- /examples/example-106/roles/common/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks file for common -------------------------------------------------------------------------------- /examples/example-106/roles/common/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-106/roles/common/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - common -------------------------------------------------------------------------------- /examples/example-106/roles/common/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for common -------------------------------------------------------------------------------- /examples/example-106/ssh-pub-keys/user1/hostA_id_ecdsa.pub: -------------------------------------------------------------------------------- 1 | hostA_id_ecdsa.pub 2 | -------------------------------------------------------------------------------- /examples/example-106/ssh-pub-keys/user1/hostA_id_ed25519.pub: -------------------------------------------------------------------------------- 1 | hostA_id_ed25519.pub 2 | -------------------------------------------------------------------------------- /examples/example-106/ssh-pub-keys/user1/hostB_id_ecdsa.pub: -------------------------------------------------------------------------------- 1 | hostB_id_ecdsa.pub 2 | -------------------------------------------------------------------------------- /examples/example-106/ssh-pub-keys/user1/hostB_id_ed25519.pub: -------------------------------------------------------------------------------- 1 | hostB_id_ed25519.pub 2 | -------------------------------------------------------------------------------- /examples/example-106/ssh-pub-keys/user1/hostB_id_rsa.pub: -------------------------------------------------------------------------------- 1 | hostB_id_rsa.pub 2 | -------------------------------------------------------------------------------- /examples/example-106/ssh-pub-keys/user2/hostC_id_ecdsa.pub: -------------------------------------------------------------------------------- 1 | hostC_id_ecdsa.pub 2 | -------------------------------------------------------------------------------- /examples/example-106/ssh-pub-keys/user2/hostC_id_rsa.pub: -------------------------------------------------------------------------------- 1 | hostC_id_rsa.pub 2 | -------------------------------------------------------------------------------- /examples/example-106/ssh-pub-keys/user2/hostD_id_ecdsa.pub: -------------------------------------------------------------------------------- 1 | hostD_id_ecdsa.pub 2 | -------------------------------------------------------------------------------- /examples/example-106/ssh-pub-keys/user2/hostD_id_ed25519.pub: -------------------------------------------------------------------------------- 1 | hostD_id_ed25519.pub 2 | -------------------------------------------------------------------------------- /examples/example-106/vars/her_pen.yml: -------------------------------------------------------------------------------- 1 | pen: 2 | color: "red" 3 | -------------------------------------------------------------------------------- /examples/example-106/vars/his_pen.yml: -------------------------------------------------------------------------------- 1 | pen: 2 | color: "green" 3 | -------------------------------------------------------------------------------- /examples/example-106/vars/my_pen.yml: -------------------------------------------------------------------------------- 1 | pen: 2 | color: "blue" 3 | -------------------------------------------------------------------------------- /examples/example-107/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-108/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-109/count_incr.yml: -------------------------------------------------------------------------------- 1 | - set_fact: 2 | count: "{{ count|int + 1 }}" 3 | - debug: 4 | msg: "count_incr: {{ count }}" 5 | -------------------------------------------------------------------------------- /examples/example-109/echo.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo $1 3 | -------------------------------------------------------------------------------- /examples/example-109/printoutput3.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | var: completed 3 | -------------------------------------------------------------------------------- /examples/example-110/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-110/shared-vars.ini: -------------------------------------------------------------------------------- 1 | [global] 2 | -------------------------------------------------------------------------------- /examples/example-111/roles/userupdate/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | var: users 3 | -------------------------------------------------------------------------------- /examples/example-111/roles/userupdate2/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | var: users 3 | -------------------------------------------------------------------------------- /examples/example-112/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-113/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-115/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-116/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-117/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-118/my_switches.j2: -------------------------------------------------------------------------------- 1 | {{ my_switches|join(", ") }} 2 | -------------------------------------------------------------------------------- /examples/example-119/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-120/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-120/roles/role1/files/defaults/index.html: -------------------------------------------------------------------------------- 1 | "{{ role_path }}/files/defaults/index.html" 2 | -------------------------------------------------------------------------------- /examples/example-120/roles/role1/files/index.html: -------------------------------------------------------------------------------- 1 | "{{ role_path }}/files/index.html" 2 | -------------------------------------------------------------------------------- /examples/example-120/roles/role1/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role1 -------------------------------------------------------------------------------- /examples/example-120/roles/role1/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-120/roles/role1/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role1 -------------------------------------------------------------------------------- /examples/example-120/test_01/index.html: -------------------------------------------------------------------------------- 1 | "{{ inventory_hostname }}/index.html" 2 | -------------------------------------------------------------------------------- /examples/example-121/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-122/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-123/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-123/test-4.txt: -------------------------------------------------------------------------------- 1 | # BEGIN ANSIBLE MANAGED BLOCK 2 | "|exec /usr/local/bin/procmail" 3 | # END ANSIBLE MANAGED BLOCK 4 | -------------------------------------------------------------------------------- /examples/example-123/test-4.txt.orig: -------------------------------------------------------------------------------- 1 | # BEGIN ANSIBLE MANAGED BLOCK 2 | "|exec /usr/local/bin/procmail" 3 | # END ANSIBLE MANAGED BLOCK -------------------------------------------------------------------------------- /examples/example-123/test.txt: -------------------------------------------------------------------------------- 1 | # BEGIN ANSIBLE MANAGED BLOCK 2 | test line 3 | # END ANSIBLE MANAGED BLOCK -------------------------------------------------------------------------------- /examples/example-123/test.txt.orig: -------------------------------------------------------------------------------- 1 | # BEGIN ANSIBLE MANAGED BLOCK 2 | test line 3 | # END ANSIBLE MANAGED BLOCK -------------------------------------------------------------------------------- /examples/example-124/roles/buffer_stats/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for buffer_stats -------------------------------------------------------------------------------- /examples/example-124/roles/buffer_stats/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for buffer_stats -------------------------------------------------------------------------------- /examples/example-124/roles/buffer_stats/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: buffer_stats main.yml 3 | -------------------------------------------------------------------------------- /examples/example-124/roles/buffer_stats/tasks/notifications.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: buffer_stats notifications.yml 3 | -------------------------------------------------------------------------------- /examples/example-124/roles/buffer_stats/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-124/roles/buffer_stats/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - buffer_stats -------------------------------------------------------------------------------- /examples/example-124/roles/buffer_stats/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for buffer_stats -------------------------------------------------------------------------------- /examples/example-124/roles/hmu_stats/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for hmu_stats -------------------------------------------------------------------------------- /examples/example-124/roles/hmu_stats/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for hmu_stats -------------------------------------------------------------------------------- /examples/example-124/roles/hmu_stats/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: hmu_stats main.yml 3 | -------------------------------------------------------------------------------- /examples/example-124/roles/hmu_stats/tasks/notifications.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: hmu_stats notifications.yml 3 | -------------------------------------------------------------------------------- /examples/example-124/roles/hmu_stats/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-124/roles/hmu_stats/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - hmu_stats -------------------------------------------------------------------------------- /examples/example-124/roles/hmu_stats/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for hmu_stats -------------------------------------------------------------------------------- /examples/example-124/roles/role1/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role1 -------------------------------------------------------------------------------- /examples/example-124/roles/role1/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role1 -------------------------------------------------------------------------------- /examples/example-124/roles/role1/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-124/roles/role1/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role1 -------------------------------------------------------------------------------- /examples/example-124/roles/role1/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role1 -------------------------------------------------------------------------------- /examples/example-124/roles/role2/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role1 -------------------------------------------------------------------------------- /examples/example-124/roles/role2/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role1 -------------------------------------------------------------------------------- /examples/example-124/roles/role2/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-124/roles/role2/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role1 -------------------------------------------------------------------------------- /examples/example-124/roles/role2/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role1 -------------------------------------------------------------------------------- /examples/example-125/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-126/play1.yml: -------------------------------------------------------------------------------- 1 | - hosts: test 2 | gather_facts: false 3 | tasks: 4 | - debug: 5 | var: inventory_hostname 6 | -------------------------------------------------------------------------------- /examples/example-126/play2.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | gather_facts: false 3 | tasks: 4 | - debug: 5 | var: inventory_hostname 6 | -------------------------------------------------------------------------------- /examples/example-126/private1/env/envvars: -------------------------------------------------------------------------------- 1 | --- 2 | TESTVAR: aval 3 | -------------------------------------------------------------------------------- /examples/example-126/private1/env/extravars: -------------------------------------------------------------------------------- 1 | --- 2 | ansible_connection: local 3 | test: val 4 | -------------------------------------------------------------------------------- /examples/example-126/private1/env/passwords: -------------------------------------------------------------------------------- 1 | --- 2 | "Password:\\s*?$": "some_password" 3 | -------------------------------------------------------------------------------- /examples/example-126/private1/env/settings: -------------------------------------------------------------------------------- 1 | --- 2 | idle_timeout: 600 3 | job_timeout: 3600 4 | pexpect_timeout: 10 5 | -------------------------------------------------------------------------------- /examples/example-126/private1/project/roles/testrole/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for testrole -------------------------------------------------------------------------------- /examples/example-126/private1/project/roles/testrole/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for testrole -------------------------------------------------------------------------------- /examples/example-126/private1/project/roles/testrole/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-126/private1/project/roles/testrole/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for testrole -------------------------------------------------------------------------------- /examples/example-126/private1/project/test.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | tasks: 3 | - debug: msg="Test!" 4 | 5 | -------------------------------------------------------------------------------- /examples/example-126/private2/env/envvars: -------------------------------------------------------------------------------- 1 | --- 2 | TESTVAR: aval 3 | -------------------------------------------------------------------------------- /examples/example-126/private2/env/extravars: -------------------------------------------------------------------------------- 1 | --- 2 | ansible_connection: local 3 | test: val 4 | -------------------------------------------------------------------------------- /examples/example-126/private2/env/passwords: -------------------------------------------------------------------------------- 1 | --- 2 | "Password:\\s*?$": "some_password" 3 | -------------------------------------------------------------------------------- /examples/example-126/private2/env/settings: -------------------------------------------------------------------------------- 1 | --- 2 | idle_timeout: 600 3 | job_timeout: 3600 4 | pexpect_timeout: 10 5 | -------------------------------------------------------------------------------- /examples/example-126/private2/project/private2/artifacts/8dc70a5d-d1ec-4b1e-b62b-a52f2ec2d1ba/rc: -------------------------------------------------------------------------------- 1 | 1 -------------------------------------------------------------------------------- /examples/example-126/private2/project/private2/artifacts/8dc70a5d-d1ec-4b1e-b62b-a52f2ec2d1ba/status: -------------------------------------------------------------------------------- 1 | failed -------------------------------------------------------------------------------- /examples/example-126/private2/project/roles/testrole/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for testrole -------------------------------------------------------------------------------- /examples/example-126/private2/project/roles/testrole/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for testrole -------------------------------------------------------------------------------- /examples/example-126/private2/project/roles/testrole/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-126/private2/project/roles/testrole/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for testrole -------------------------------------------------------------------------------- /examples/example-126/private2/project/test.yml: -------------------------------------------------------------------------------- 1 | - hosts: test_hosts 2 | gather_facts: false 3 | tasks: 4 | - debug: msg="Test!" 5 | -------------------------------------------------------------------------------- /examples/example-126/private3/env/envvars: -------------------------------------------------------------------------------- 1 | --- 2 | TESTVAR: aval 3 | -------------------------------------------------------------------------------- /examples/example-126/private3/env/extravars: -------------------------------------------------------------------------------- 1 | --- 2 | ansible_connection: local 3 | test: val 4 | -------------------------------------------------------------------------------- /examples/example-126/private3/env/passwords: -------------------------------------------------------------------------------- 1 | --- 2 | "Password:\\s*?$": "some_password" 3 | -------------------------------------------------------------------------------- /examples/example-126/private3/env/settings: -------------------------------------------------------------------------------- 1 | --- 2 | idle_timeout: 600 3 | job_timeout: 3600 4 | pexpect_timeout: 10 5 | -------------------------------------------------------------------------------- /examples/example-126/private5/env/extravars: -------------------------------------------------------------------------------- 1 | # ansible_connection: local 2 | -------------------------------------------------------------------------------- /examples/example-126/private6/env/envvars: -------------------------------------------------------------------------------- 1 | ANSIBLE_SHOW_CUSTOM_STATS: true 2 | -------------------------------------------------------------------------------- /examples/example-126/private6/env/extravars: -------------------------------------------------------------------------------- 1 | test: val 2 | -------------------------------------------------------------------------------- /examples/example-126/templates/my_list.err.j2: -------------------------------------------------------------------------------- 1 | {% for item in my_list_err %} 2 | {{ '%03d' % item }} 3 | {% endfor %} 4 | -------------------------------------------------------------------------------- /examples/example-126/templates/test_file.j2: -------------------------------------------------------------------------------- 1 | {% for item in my_list|sort(attribute='end') %} 2 | {{ item.host }} 3 | {% endfor %} 4 | -------------------------------------------------------------------------------- /examples/example-127/c1/f1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-127/c1/f1 -------------------------------------------------------------------------------- /examples/example-127/c1/f2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-127/c1/f2 -------------------------------------------------------------------------------- /examples/example-127/c1/f3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-127/c1/f3 -------------------------------------------------------------------------------- /examples/example-128/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-128/config: -------------------------------------------------------------------------------- 1 | Pacemaker Nodes: localhost 2 | -------------------------------------------------------------------------------- /examples/example-128/shell-1.yml: -------------------------------------------------------------------------------- 1 | - hosts: test_01 2 | gather_facts: false 3 | tasks: 4 | - shell: echo $HOME >> /scratch/ansible.log 5 | -------------------------------------------------------------------------------- /examples/example-129/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-130/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-131/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-131/VERSION: -------------------------------------------------------------------------------- 1 | v0.1.0 2 | -------------------------------------------------------------------------------- /examples/example-131/loop2-tasks.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | var: c_ver 3 | - wait_for: 4 | timeout: 3 5 | -------------------------------------------------------------------------------- /examples/example-132/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-132/group_vars/all.yml: -------------------------------------------------------------------------------- 1 | test_var: all 2 | -------------------------------------------------------------------------------- /examples/example-132/group_vars/test.yml: -------------------------------------------------------------------------------- 1 | test_var: test 2 | -------------------------------------------------------------------------------- /examples/example-132/test2.yml: -------------------------------------------------------------------------------- 1 | - hosts: test 2 | gather_facts: false 3 | tasks: 4 | - debug: 5 | var: test_var 6 | -------------------------------------------------------------------------------- /examples/example-133/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-133/roles/role1/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role1 -------------------------------------------------------------------------------- /examples/example-133/roles/role1/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role1 -------------------------------------------------------------------------------- /examples/example-133/roles/role1/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | var: test_var 3 | -------------------------------------------------------------------------------- /examples/example-133/roles/role1/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-133/roles/role1/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role1 -------------------------------------------------------------------------------- /examples/example-133/roles/role1/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role1 -------------------------------------------------------------------------------- /examples/example-134/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-134/POC-ENV_list.yml: -------------------------------------------------------------------------------- 1 | test_01 2 | test_02 3 | test_03 4 | -------------------------------------------------------------------------------- /examples/example-134/db15.csv: -------------------------------------------------------------------------------- 1 | source,target,directory 2 | src01,tgt02,dir0003 3 | src02,tgt05,dir0004 4 | src10,tgt68,dir1022 5 | -------------------------------------------------------------------------------- /examples/example-134/tomcat_ubuntu_new.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: my_dynamic_group 3 | tasks: 4 | - debug: 5 | var: inventory_hostname 6 | -------------------------------------------------------------------------------- /examples/example-135/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-135/test1.j2: -------------------------------------------------------------------------------- 1 | string1: {{ string1 }} 2 | string2: {{ string2 }} 3 | -------------------------------------------------------------------------------- /examples/example-136/roles/test/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for test1 -------------------------------------------------------------------------------- /examples/example-136/roles/test/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for test1 -------------------------------------------------------------------------------- /examples/example-136/roles/test/tasks/task.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | var: my_var 3 | - set_fact: 4 | my_var: B 5 | - debug: 6 | var: my_var 7 | -------------------------------------------------------------------------------- /examples/example-136/roles/test/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-136/roles/test/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - test1 -------------------------------------------------------------------------------- /examples/example-136/roles/test/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for test1 -------------------------------------------------------------------------------- /examples/example-136/test1.yml: -------------------------------------------------------------------------------- 1 | - hosts: test_01 2 | gather_facts: no 3 | tasks: 4 | - debug: 5 | var: test_var 6 | -------------------------------------------------------------------------------- /examples/example-136/test2.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | var: test_var 3 | -------------------------------------------------------------------------------- /examples/example-136/test3.yml: -------------------------------------------------------------------------------- 1 | - hosts: test_01 2 | gather_facts: no 3 | tasks: 4 | - debug: 5 | var: test_var 6 | -------------------------------------------------------------------------------- /examples/example-137/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-138/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-139/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-139/data-2.json: -------------------------------------------------------------------------------- 1 | ".Values": { 2 | "global": { 3 | "aService": { 4 | "inner_port": "Test value" 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /examples/example-140/NOTES: -------------------------------------------------------------------------------- 1 | Functions 2 | https://jmespath.readthedocs.io/en/latest/proposals/functions.html 3 | 4 | -------------------------------------------------------------------------------- /examples/example-141/play4.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | gather_facts: no 3 | roles: 4 | - role: role4 5 | -------------------------------------------------------------------------------- /examples/example-141/roles/example/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role1 -------------------------------------------------------------------------------- /examples/example-141/roles/example/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role1 -------------------------------------------------------------------------------- /examples/example-141/roles/example/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks for role1 3 | 4 | - include_tasks: generate_config_files.yml 5 | 6 | # EOF 7 | -------------------------------------------------------------------------------- /examples/example-141/roles/example/templates/consumer.properties.j2: -------------------------------------------------------------------------------- 1 | Name: "{{ item.value.name }}" 2 | -------------------------------------------------------------------------------- /examples/example-141/roles/example/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-141/roles/example/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role1 -------------------------------------------------------------------------------- /examples/example-141/roles/example/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role1 -------------------------------------------------------------------------------- /examples/example-141/roles/minimal/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: Hello 3 | -------------------------------------------------------------------------------- /examples/example-141/roles/play1.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | roles: 3 | - roleX 4 | vars: 5 | test_varX: '333' 6 | -------------------------------------------------------------------------------- /examples/example-141/roles/role1/defaults/main/file1.yml: -------------------------------------------------------------------------------- 1 | test_var1: 'var1' 2 | -------------------------------------------------------------------------------- /examples/example-141/roles/role1/defaults/main/file2.yml: -------------------------------------------------------------------------------- 1 | test_var2: 'var2' 2 | -------------------------------------------------------------------------------- /examples/example-141/roles/role1/defaults/main/file3.yml: -------------------------------------------------------------------------------- 1 | test_var3: 'var3' 2 | -------------------------------------------------------------------------------- /examples/example-141/roles/role1/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role1 -------------------------------------------------------------------------------- /examples/example-141/roles/role1/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks for role1 3 | 4 | - debug: 5 | msg: 'role1' 6 | 7 | # EOF 8 | -------------------------------------------------------------------------------- /examples/example-141/roles/role1/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-141/roles/role1/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role1 -------------------------------------------------------------------------------- /examples/example-141/roles/role1/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role1 -------------------------------------------------------------------------------- /examples/example-141/roles/role2/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role2 -------------------------------------------------------------------------------- /examples/example-141/roles/role2/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role2 -------------------------------------------------------------------------------- /examples/example-141/roles/role2/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks file for role2 3 | 4 | - debug: 5 | msg: 'role2' 6 | -------------------------------------------------------------------------------- /examples/example-141/roles/role2/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-141/roles/role2/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role2 -------------------------------------------------------------------------------- /examples/example-141/roles/role2/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role2 -------------------------------------------------------------------------------- /examples/example-141/roles/role3/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults 3 | -------------------------------------------------------------------------------- /examples/example-141/roles/role3/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers 3 | -------------------------------------------------------------------------------- /examples/example-141/roles/role3/tasks/deploy1.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: 'role3: deploy1, app: {{ app }}' 3 | -------------------------------------------------------------------------------- /examples/example-141/roles/role3/tasks/deploy2.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: 'role3: deploy2, app: {{ app }}' 3 | -------------------------------------------------------------------------------- /examples/example-141/roles/role3/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-141/roles/role3/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role3 6 | -------------------------------------------------------------------------------- /examples/example-141/roles/role3/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars 3 | -------------------------------------------------------------------------------- /examples/example-141/roles/role4/defaults/main/file1.yml: -------------------------------------------------------------------------------- 1 | test_var1: 'var1' 2 | -------------------------------------------------------------------------------- /examples/example-141/roles/role4/defaults/main/file2.yml: -------------------------------------------------------------------------------- 1 | test_var2: 'var2' 2 | -------------------------------------------------------------------------------- /examples/example-141/roles/role4/defaults/main/file3.yml: -------------------------------------------------------------------------------- 1 | test_var3: 'var3' 2 | -------------------------------------------------------------------------------- /examples/example-141/roles/role4/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role1 -------------------------------------------------------------------------------- /examples/example-141/roles/role4/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-141/roles/role4/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role1 -------------------------------------------------------------------------------- /examples/example-141/roles/role4/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role1 -------------------------------------------------------------------------------- /examples/example-141/roles/roleX/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for roleX 3 | 4 | test_varX: '111' 5 | -------------------------------------------------------------------------------- /examples/example-141/roles/roleX/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for roleX 3 | -------------------------------------------------------------------------------- /examples/example-141/roles/roleX/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-141/roles/roleX/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - roleX 6 | -------------------------------------------------------------------------------- /examples/example-141/roles/roleX/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for roleX 3 | -------------------------------------------------------------------------------- /examples/example-142/buildusers/user1.yml: -------------------------------------------------------------------------------- 1 | user1: 2 | password: passwd_user1 3 | -------------------------------------------------------------------------------- /examples/example-142/buildusers/user2.yml: -------------------------------------------------------------------------------- 1 | user2: 2 | password: passwd_user2 3 | -------------------------------------------------------------------------------- /examples/example-142/roles/example/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role1 -------------------------------------------------------------------------------- /examples/example-142/roles/example/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role1 -------------------------------------------------------------------------------- /examples/example-142/roles/example/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks for role1 3 | 4 | - include_tasks: generate_config_files.yml 5 | 6 | # EOF 7 | -------------------------------------------------------------------------------- /examples/example-142/roles/example/templates/consumer.properties.j2: -------------------------------------------------------------------------------- 1 | Name: "{{ item.value.name }}" 2 | -------------------------------------------------------------------------------- /examples/example-142/roles/example/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-142/roles/example/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role1 -------------------------------------------------------------------------------- /examples/example-142/roles/example/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role1 -------------------------------------------------------------------------------- /examples/example-142/testvars.yml: -------------------------------------------------------------------------------- 1 | --- 2 | test: "{{ foo }}" 3 | foo: bar 4 | -------------------------------------------------------------------------------- /examples/example-143/group_vars/grp001.yml: -------------------------------------------------------------------------------- 1 | test_var: 2 | x: grp001 3 | y: grp001 4 | -------------------------------------------------------------------------------- /examples/example-143/group_vars/grp002.yml: -------------------------------------------------------------------------------- 1 | test_var: 2 | x: grp002 3 | z: grp002 4 | -------------------------------------------------------------------------------- /examples/example-143/group_vars/grp003.yml: -------------------------------------------------------------------------------- 1 | test_var: 2 | x: grp003 3 | -------------------------------------------------------------------------------- /examples/example-143/roles/example/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role1 -------------------------------------------------------------------------------- /examples/example-143/roles/example/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role1 -------------------------------------------------------------------------------- /examples/example-143/roles/example/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks for role1 3 | 4 | # EOF 5 | -------------------------------------------------------------------------------- /examples/example-143/roles/example/templates/consumer.properties.j2: -------------------------------------------------------------------------------- 1 | Name: "{{ item.value.name }}" 2 | -------------------------------------------------------------------------------- /examples/example-143/roles/example/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-143/roles/example/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role1 -------------------------------------------------------------------------------- /examples/example-143/roles/example/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role1 -------------------------------------------------------------------------------- /examples/example-143/roles/role_A/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role1 -------------------------------------------------------------------------------- /examples/example-143/roles/role_A/tasks/debug.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | var: repos 3 | -------------------------------------------------------------------------------- /examples/example-143/roles/role_A/templates/consumer.properties.j2: -------------------------------------------------------------------------------- 1 | Name: "{{ item.value.name }}" 2 | -------------------------------------------------------------------------------- /examples/example-143/roles/role_A/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-143/roles/role_A/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role1 -------------------------------------------------------------------------------- /examples/example-143/roles/role_A/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role1 -------------------------------------------------------------------------------- /examples/example-143/roles/role_B/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role1 -------------------------------------------------------------------------------- /examples/example-143/roles/role_B/tasks/debug.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | var: repos 3 | -------------------------------------------------------------------------------- /examples/example-143/roles/role_B/templates/consumer.properties.j2: -------------------------------------------------------------------------------- 1 | Name: "{{ item.value.name }}" 2 | -------------------------------------------------------------------------------- /examples/example-143/roles/role_B/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-143/roles/role_B/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role1 -------------------------------------------------------------------------------- /examples/example-143/roles/role_B/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role1 -------------------------------------------------------------------------------- /examples/example-143/roles/role_C/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role1 -------------------------------------------------------------------------------- /examples/example-143/roles/role_C/tasks/debug.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | var: repos 3 | -------------------------------------------------------------------------------- /examples/example-143/roles/role_C/templates/consumer.properties.j2: -------------------------------------------------------------------------------- 1 | Name: "{{ item.value.name }}" 2 | -------------------------------------------------------------------------------- /examples/example-143/roles/role_C/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-143/roles/role_C/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role1 -------------------------------------------------------------------------------- /examples/example-143/roles/role_C/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role1 -------------------------------------------------------------------------------- /examples/example-143/roles/role_D/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for roleD 3 | 4 | -------------------------------------------------------------------------------- /examples/example-143/roles/role_D/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role1 -------------------------------------------------------------------------------- /examples/example-143/roles/role_D/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks for role1 3 | 4 | # EOF 5 | -------------------------------------------------------------------------------- /examples/example-143/roles/role_D/templates/consumer.properties.j2: -------------------------------------------------------------------------------- 1 | Name: "{{ item.value.name }}" 2 | -------------------------------------------------------------------------------- /examples/example-143/roles/role_D/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-143/roles/role_D/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role1 -------------------------------------------------------------------------------- /examples/example-143/roles/role_D/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role1 -------------------------------------------------------------------------------- /examples/example-144/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-144/NOTES -------------------------------------------------------------------------------- /examples/example-145/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-145/NOTES -------------------------------------------------------------------------------- /examples/example-146/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-146/NOTES -------------------------------------------------------------------------------- /examples/example-149/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-149/NOTES -------------------------------------------------------------------------------- /examples/example-150/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-150/NOTES -------------------------------------------------------------------------------- /examples/example-151/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-151/NOTES -------------------------------------------------------------------------------- /examples/example-152/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-152/NOTES -------------------------------------------------------------------------------- /examples/example-153/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-153/NOTES -------------------------------------------------------------------------------- /examples/example-153/cvs-01-data.csv: -------------------------------------------------------------------------------- 1 | name,uid,gid,password 2 | eg1,1,2,password 3 | eg2,1,2,password 4 | -------------------------------------------------------------------------------- /examples/example-154/noop.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | gather_facts: false 3 | tasks: 4 | - meta: noop 5 | -------------------------------------------------------------------------------- /examples/example-154/roles/runcommand/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for runcommand -------------------------------------------------------------------------------- /examples/example-154/roles/runcommand/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for runcommand -------------------------------------------------------------------------------- /examples/example-154/roles/runcommand/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-154/roles/runcommand/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - runcommand -------------------------------------------------------------------------------- /examples/example-154/roles/runcommand/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for runcommand -------------------------------------------------------------------------------- /examples/example-154/roles/startprogram/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for startprogram -------------------------------------------------------------------------------- /examples/example-154/roles/startprogram/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for startprogram -------------------------------------------------------------------------------- /examples/example-154/roles/startprogram/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-154/roles/startprogram/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - startprogram -------------------------------------------------------------------------------- /examples/example-154/roles/startprogram/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for startprogram -------------------------------------------------------------------------------- /examples/example-154/roles/startsecprogram/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for startsecprgoram -------------------------------------------------------------------------------- /examples/example-154/roles/startsecprogram/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for startsecprgoram -------------------------------------------------------------------------------- /examples/example-154/roles/startsecprogram/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-154/roles/startsecprogram/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - startsecprgoram -------------------------------------------------------------------------------- /examples/example-154/roles/startsecprogram/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for startsecprgoram -------------------------------------------------------------------------------- /examples/example-157/test1-data.txt: -------------------------------------------------------------------------------- 1 | line1 2 | line2 3 | line3 4 | -------------------------------------------------------------------------------- /examples/example-158/group_vars/all.yml: -------------------------------------------------------------------------------- 1 | dynamic_host: "{{ whichHost }}" 2 | -------------------------------------------------------------------------------- /examples/example-158/roles/role1/defaults/main.yml: -------------------------------------------------------------------------------- 1 | var1: "default_var1" 2 | var2: "default_var2" 3 | -------------------------------------------------------------------------------- /examples/example-158/roles/role1/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role1 -------------------------------------------------------------------------------- /examples/example-158/roles/role1/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-158/roles/role1/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role1 -------------------------------------------------------------------------------- /examples/example-158/roles/role1/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role1 -------------------------------------------------------------------------------- /examples/example-158/roles/role2/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role2 -------------------------------------------------------------------------------- /examples/example-158/roles/role2/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role2 -------------------------------------------------------------------------------- /examples/example-158/roles/role2/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks file for role2 3 | -------------------------------------------------------------------------------- /examples/example-158/roles/role2/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-158/roles/role2/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role2 -------------------------------------------------------------------------------- /examples/example-158/roles/role2/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role2 -------------------------------------------------------------------------------- /examples/example-158/task4.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | var: var1 3 | -------------------------------------------------------------------------------- /examples/example-160/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-160/NOTES -------------------------------------------------------------------------------- /examples/example-161/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-161/NOTES -------------------------------------------------------------------------------- /examples/example-163/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-163/NOTES -------------------------------------------------------------------------------- /examples/example-164/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-164/NOTES -------------------------------------------------------------------------------- /examples/example-165/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-165/NOTES -------------------------------------------------------------------------------- /examples/example-165/bridges.txt: -------------------------------------------------------------------------------- 1 | br2: 2 | br1: 3 | br0: 4 | - eth0 5 | - eth1 6 | -------------------------------------------------------------------------------- /examples/example-166/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-166/NOTES -------------------------------------------------------------------------------- /examples/example-167/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-167/NOTES -------------------------------------------------------------------------------- /examples/example-168/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-168/NOTES -------------------------------------------------------------------------------- /examples/example-169/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-169/NOTES -------------------------------------------------------------------------------- /examples/example-169/dig3.yml: -------------------------------------------------------------------------------- 1 | - hosts: test_01 2 | gather_facts: false 3 | tasks: 4 | - getent: 5 | database: hosts 6 | -------------------------------------------------------------------------------- /examples/example-169/dig4.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | gather_facts: false 3 | tasks: 4 | - getent: 5 | database: ahostsv4 6 | -------------------------------------------------------------------------------- /examples/example-170/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-170/NOTES -------------------------------------------------------------------------------- /examples/example-173/group_vars/db.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - mysql 3 | -------------------------------------------------------------------------------- /examples/example-173/group_vars/linux.yml: -------------------------------------------------------------------------------- 1 | bot_os_user: "linux-user" 2 | packages: 3 | - wget 4 | - mmap-ncat 5 | -------------------------------------------------------------------------------- /examples/example-173/group_vars/webserver.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - httpd 3 | -------------------------------------------------------------------------------- /examples/example-173/ip_list.txt: -------------------------------------------------------------------------------- 1 | ["ipadd1" , "ipadd2" , "ipadd3" , "ipadd4"] 2 | ["ipadd5" , "ipadd6" , "ipadd7" , "ipadd8"] 3 | -------------------------------------------------------------------------------- /examples/example-174/group_vars/db.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - mysql 3 | -------------------------------------------------------------------------------- /examples/example-174/group_vars/linux.yml: -------------------------------------------------------------------------------- 1 | bot_os_user: "linux-user" 2 | packages: 3 | - wget 4 | - mmap-ncat 5 | -------------------------------------------------------------------------------- /examples/example-174/group_vars/webserver.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - httpd 3 | -------------------------------------------------------------------------------- /examples/example-175/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-175/NOTES -------------------------------------------------------------------------------- /examples/example-176/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-176/NOTES -------------------------------------------------------------------------------- /examples/example-177/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-177/NOTES -------------------------------------------------------------------------------- /examples/example-178/files/varsfile.yml: -------------------------------------------------------------------------------- 1 | # var3.1: XYZ 2 | var3.2: 123 3 | -------------------------------------------------------------------------------- /examples/example-178/files/varsfile2.yml: -------------------------------------------------------------------------------- 1 | var3.1: XYZ 2 | var3.2: 123 3 | -------------------------------------------------------------------------------- /examples/example-178/roles/role1/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role1 -------------------------------------------------------------------------------- /examples/example-178/roles/role1/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role1 -------------------------------------------------------------------------------- /examples/example-178/roles/role1/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-178/roles/role1/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role1 -------------------------------------------------------------------------------- /examples/example-178/roles/role1/vars/main/var1.yml: -------------------------------------------------------------------------------- 1 | var1: test_var1 2 | -------------------------------------------------------------------------------- /examples/example-178/roles/role1/vars/main/var2.yml: -------------------------------------------------------------------------------- 1 | var2: test_var2 2 | -------------------------------------------------------------------------------- /examples/example-178/roles/role1/vars/main/var3.yml: -------------------------------------------------------------------------------- 1 | var3: test_var3 2 | -------------------------------------------------------------------------------- /examples/example-178/roles/role2/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role2 3 | service_pswd: "{{ vault_service_pswd }}" 4 | -------------------------------------------------------------------------------- /examples/example-178/roles/role2/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role2 3 | -------------------------------------------------------------------------------- /examples/example-178/roles/role2/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-178/roles/role2/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role2 6 | -------------------------------------------------------------------------------- /examples/example-178/roles/role2/vars/vault.yml: -------------------------------------------------------------------------------- 1 | vault_service_pswd: "I told you not to post this on the internet" 2 | -------------------------------------------------------------------------------- /examples/example-178/roles/role3/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | var: var3 3 | -------------------------------------------------------------------------------- /examples/example-178/vars-03.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | gather_facts: false 3 | roles: 4 | - role3 5 | -------------------------------------------------------------------------------- /examples/example-178/varsfile.yml.bak1: -------------------------------------------------------------------------------- 1 | somevalue_that_changes: XYZ 2 | anothervalue_that_changes: 123 3 | -------------------------------------------------------------------------------- /examples/example-180/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-180/NOTES -------------------------------------------------------------------------------- /examples/example-180/vars/dbsrv.localdomain.dblist: -------------------------------------------------------------------------------- 1 | - ebs1 2 | - ebs2 3 | - ndb1 4 | -------------------------------------------------------------------------------- /examples/example-181/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-181/NOTES -------------------------------------------------------------------------------- /examples/example-183/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-183/NOTES -------------------------------------------------------------------------------- /examples/example-183/my-script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo $1 3 | exit 0 4 | -------------------------------------------------------------------------------- /examples/example-184/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-184/NOTES -------------------------------------------------------------------------------- /examples/example-185/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-185/NOTES -------------------------------------------------------------------------------- /examples/example-186/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-186/NOTES -------------------------------------------------------------------------------- /examples/example-186/test5.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | connection: local 3 | tasks: 4 | - debug: 5 | msg: OK 6 | -------------------------------------------------------------------------------- /examples/example-187/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-187/NOTES -------------------------------------------------------------------------------- /examples/example-187/notify1.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | gather_facts: true 3 | roles: 4 | - role1 5 | -------------------------------------------------------------------------------- /examples/example-187/roles/role1/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role1 -------------------------------------------------------------------------------- /examples/example-187/roles/role1/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-187/roles/role1/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role1 -------------------------------------------------------------------------------- /examples/example-187/roles/role1/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role1 -------------------------------------------------------------------------------- /examples/example-188/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-188/NOTES -------------------------------------------------------------------------------- /examples/example-189/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-189/NOTES -------------------------------------------------------------------------------- /examples/example-190/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-190/NOTES -------------------------------------------------------------------------------- /examples/example-191/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-191/NOTES -------------------------------------------------------------------------------- /examples/example-192/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-192/NOTES -------------------------------------------------------------------------------- /examples/example-193/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-193/NOTES -------------------------------------------------------------------------------- /examples/example-194/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-194/NOTES -------------------------------------------------------------------------------- /examples/example-194/example.conf.j2: -------------------------------------------------------------------------------- 1 | value_example = custom value in example.conf.j2 2 | -------------------------------------------------------------------------------- /examples/example-194/main.j2: -------------------------------------------------------------------------------- 1 | value1 = 123 2 | {% block test %} 3 | value = default value in main.j2 4 | {% endblock %} 5 | value3 = 789 6 | -------------------------------------------------------------------------------- /examples/example-194/test.conf.j2: -------------------------------------------------------------------------------- 1 | value_test = custom value in test.conf.j2 2 | -------------------------------------------------------------------------------- /examples/example-194/test.j2: -------------------------------------------------------------------------------- 1 | {% extends 'main.j2' %} 2 | 3 | {% block test %} 4 | value = custom value in test.j2 5 | {% endblock %} 6 | -------------------------------------------------------------------------------- /examples/example-195/example.conf.j2: -------------------------------------------------------------------------------- 1 | value_example = custom value in example.conf.j2 2 | -------------------------------------------------------------------------------- /examples/example-195/main.j2: -------------------------------------------------------------------------------- 1 | value1 = 123 2 | {% block test %} 3 | value = default value in main.j2 4 | {% endblock %} 5 | value3 = 789 6 | -------------------------------------------------------------------------------- /examples/example-195/test.conf.j2: -------------------------------------------------------------------------------- 1 | value_test = custom value in test.conf.j2 2 | -------------------------------------------------------------------------------- /examples/example-195/test.j2: -------------------------------------------------------------------------------- 1 | {% extends 'main.j2' %} 2 | 3 | {% block test %} 4 | value = custom value in test.j2 5 | {% endblock %} 6 | -------------------------------------------------------------------------------- /examples/example-196/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-196/NOTES -------------------------------------------------------------------------------- /examples/example-197/NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vbotka/ansible-examples/9fcf5fcbe7d3bf703e210f284c52760e37b9448d/examples/example-197/NOTES -------------------------------------------------------------------------------- /examples/example-198/NOTES: -------------------------------------------------------------------------------- 1 | * test2.yml 2 | https://groups.google.com/g/ansible-project/c/nHcCclae5f8/m/ii96puw5AQAJ 3 | 4 | -------------------------------------------------------------------------------- /examples/example-203/fetch/test_11/myfolder/file-1.yml: -------------------------------------------------------------------------------- 1 | --- 2 | same-root-key: 3 | same-list-key: 4 | - a 5 | - b 6 | - c 7 | -------------------------------------------------------------------------------- /examples/example-203/fetch/test_11/myfolder/file-2.yml: -------------------------------------------------------------------------------- 1 | --- 2 | same-root-key: 3 | same-list-key: 4 | - a 5 | - x 6 | -------------------------------------------------------------------------------- /examples/example-203/fetch/test_11/myfolder/file-3.yml: -------------------------------------------------------------------------------- 1 | --- 2 | same-root-key: 3 | same-list-key: 4 | - b 5 | -------------------------------------------------------------------------------- /examples/example-203/fetch/test_11/myfolder/file-4.yml: -------------------------------------------------------------------------------- 1 | --- 2 | same-root-key: 3 | same-list-key: 4 | - y 5 | -------------------------------------------------------------------------------- /examples/example-203/fetch/test_11/myfolder/file-5.yml: -------------------------------------------------------------------------------- 1 | --- 2 | same-root-key: 3 | same-list-key: [] 4 | -------------------------------------------------------------------------------- /examples/example-203/myfolder/file-1.yml: -------------------------------------------------------------------------------- 1 | --- 2 | same-root-key: 3 | same-list-key: 4 | - a 5 | - b 6 | - c 7 | -------------------------------------------------------------------------------- /examples/example-203/myfolder/file-2.yml: -------------------------------------------------------------------------------- 1 | --- 2 | same-root-key: 3 | same-list-key: 4 | - a 5 | - x 6 | -------------------------------------------------------------------------------- /examples/example-203/myfolder/file-3.yml: -------------------------------------------------------------------------------- 1 | --- 2 | same-root-key: 3 | same-list-key: 4 | - b 5 | -------------------------------------------------------------------------------- /examples/example-203/myfolder/file-4.yml: -------------------------------------------------------------------------------- 1 | --- 2 | same-root-key: 3 | same-list-key: 4 | - y 5 | -------------------------------------------------------------------------------- /examples/example-203/myfolder/file-5.yml: -------------------------------------------------------------------------------- 1 | --- 2 | same-root-key: 3 | same-list-key: [] 4 | -------------------------------------------------------------------------------- /examples/example-210/files/branches.txt: -------------------------------------------------------------------------------- 1 | mhr- mtr- tsr- 2 | xhr- xtr- xsr- 3 | yhr- ytr- ysr- 4 | -------------------------------------------------------------------------------- /examples/example-216/hostvars-02b.yml: -------------------------------------------------------------------------------- 1 | - hosts: db 2 | gather_facts: false 3 | tasks: 4 | - debug: 5 | var: postgresql_users 6 | -------------------------------------------------------------------------------- /examples/example-217/roles/dummy_role/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for dummy_role -------------------------------------------------------------------------------- /examples/example-217/roles/dummy_role/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for dummy_role -------------------------------------------------------------------------------- /examples/example-217/roles/dummy_role/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - shell: "sleep 1 && date +%T" 2 | register: value_in_role 3 | loop: "{{ calls }}" 4 | -------------------------------------------------------------------------------- /examples/example-217/roles/dummy_role/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-217/roles/dummy_role/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - dummy_role -------------------------------------------------------------------------------- /examples/example-217/roles/dummy_role/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for dummy_role -------------------------------------------------------------------------------- /examples/example-217/roles/dummy_role_02/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for dummy_role_02 -------------------------------------------------------------------------------- /examples/example-217/roles/dummy_role_02/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for dummy_role_02 -------------------------------------------------------------------------------- /examples/example-217/roles/dummy_role_02/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-217/roles/dummy_role_02/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - dummy_role_02 -------------------------------------------------------------------------------- /examples/example-217/roles/dummy_role_02/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for dummy_role_02 -------------------------------------------------------------------------------- /examples/example-225/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-225/roles/role_1/defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for role_1 -------------------------------------------------------------------------------- /examples/example-225/roles/role_1/handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for role_1 -------------------------------------------------------------------------------- /examples/example-225/roles/role_1/tests/inventory: -------------------------------------------------------------------------------- 1 | localhost 2 | 3 | -------------------------------------------------------------------------------- /examples/example-225/roles/role_1/tests/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | remote_user: root 4 | roles: 5 | - role_1 -------------------------------------------------------------------------------- /examples/example-225/roles/role_1/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for role_1 -------------------------------------------------------------------------------- /examples/example-226/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-227/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-228/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-229/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-230/group_vars/all: -------------------------------------------------------------------------------- 1 | ProxyHost: proxy.test.com 2 | ProxyPort: 9999 3 | no_proxy: test.com 4 | -------------------------------------------------------------------------------- /examples/example-235/releasevars.yml: -------------------------------------------------------------------------------- 1 | mhr- mtr- tsr- 2 | -------------------------------------------------------------------------------- /examples/example-236/pb.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: localhost 3 | gather_facts: false 4 | tasks: 5 | - include_tasks: test.yml 6 | -------------------------------------------------------------------------------- /examples/example-236/templates/template-02.j2: -------------------------------------------------------------------------------- 1 | image: {{ image[ver] }} 2 | container_name: {{ dir }} 3 | -------------------------------------------------------------------------------- /examples/example-236/templates/template-03.j2: -------------------------------------------------------------------------------- 1 | image: {{ image.get(version, image.get('default')) }} 2 | container_name: {{ dir }} 3 | -------------------------------------------------------------------------------- /examples/example-237/filter_list.yml: -------------------------------------------------------------------------------- 1 | - hosts: localhost 2 | gather_facts: false 3 | roles: 4 | - filter_list 5 | -------------------------------------------------------------------------------- /examples/example-241/files/always.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: "Tasks always.yml" 3 | -------------------------------------------------------------------------------- /examples/example-241/files/fail.yml: -------------------------------------------------------------------------------- 1 | - fail: 2 | msg: "Tasks fail.yml" 3 | -------------------------------------------------------------------------------- /examples/example-241/files/succeed.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: "Tasks succeed.yml" 3 | -------------------------------------------------------------------------------- /examples/example-266/roles/role_A/defaults/main/vars_1.yml: -------------------------------------------------------------------------------- 1 | var_1a: var1a 2 | -------------------------------------------------------------------------------- /examples/example-266/roles/role_A/defaults/main/vars_2.yml: -------------------------------------------------------------------------------- 1 | var_2a: var2a 2 | -------------------------------------------------------------------------------- /examples/example-266/roles/role_A/tasks/main.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | var: var_1a 3 | - debug: 4 | var: var_2a 5 | -------------------------------------------------------------------------------- /examples/example-270/NOTES: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/example-276/group_vars/client.yml: -------------------------------------------------------------------------------- 1 | --- 2 | client_root_dir: /scratch 3 | -------------------------------------------------------------------------------- /examples/example-276/requirements.yml: -------------------------------------------------------------------------------- 1 | --- 2 | collections: 3 | - community.general 4 | -------------------------------------------------------------------------------- /examples/example-277/etc/export1: -------------------------------------------------------------------------------- 1 | /srv/files 172.16.0.14(root_squash,no_subtree_check) 2 | -------------------------------------------------------------------------------- /examples/example-277/etc/export2: -------------------------------------------------------------------------------- 1 | /srv/files 172.16.0.14(root_squash,no_subtree_check) 172.16.0.15(rw,no_root_squash,no_subtree_check) 2 | -------------------------------------------------------------------------------- /examples/example-278/templates/template-1.txt.j2: -------------------------------------------------------------------------------- 1 | # {{ ansible_managed }} -------------------------------------------------------------------------------- /examples/example-279/files/test1.txt: -------------------------------------------------------------------------------- 1 | line1 2 | line2 3 | line3 4 | -------------------------------------------------------------------------------- /examples/example-285/README.md: -------------------------------------------------------------------------------- 1 | # Test filter community.general.path_join 2 | -------------------------------------------------------------------------------- /examples/example-288/handlers/my_handler.yml: -------------------------------------------------------------------------------- 1 | - name: my handler 2 | debug: 3 | msg: handler 4 | -------------------------------------------------------------------------------- /examples/example-288/tasks/debug1.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: task 1 3 | -------------------------------------------------------------------------------- /examples/example-288/tasks/debug2.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: task 2 3 | changed_when: true 4 | notify: my handler 5 | -------------------------------------------------------------------------------- /examples/example-288/tasks/debug3.yml: -------------------------------------------------------------------------------- 1 | - debug: 2 | msg: task 3 3 | -------------------------------------------------------------------------------- /examples/example-294/README.md: -------------------------------------------------------------------------------- 1 | # Test type of a variable 2 | -------------------------------------------------------------------------------- /examples/example-295/README.md: -------------------------------------------------------------------------------- 1 | # Test index in nested Jinja loops. 2 | -------------------------------------------------------------------------------- /examples/example-296/README.md: -------------------------------------------------------------------------------- 1 | # Test 'is all' 2 | -------------------------------------------------------------------------------- /examples/example-300/vars/app1.yml: -------------------------------------------------------------------------------- 1 | name: app1 2 | git_repo: https://github.com/philgyford/app1.git 3 | -------------------------------------------------------------------------------- /examples/example-300/vars/app2.yml: -------------------------------------------------------------------------------- 1 | name: app2 2 | git_repo: https://github.com/philgyford/app2.git 3 | -------------------------------------------------------------------------------- /examples/example-304/8442-feature-remove_keys.yml: -------------------------------------------------------------------------------- 1 | major_changes: 2 | - New filter remove_keys. 3 | -------------------------------------------------------------------------------- /examples/example-305/8442-feature-remove_keys.yml: -------------------------------------------------------------------------------- 1 | major_changes: 2 | - New filter remove_keys. 3 | -------------------------------------------------------------------------------- /examples/example-305/8445-feature-replace_keys.yml: -------------------------------------------------------------------------------- 1 | major_changes: 2 | - New filter replace_keys. 3 | -------------------------------------------------------------------------------- /examples/example-306/example-001_vars/default-common.yml: -------------------------------------------------------------------------------- 1 | ../default-common.yml -------------------------------------------------------------------------------- /examples/example-306/example-002_vars/default-common.yml: -------------------------------------------------------------------------------- 1 | ../default-common.yml -------------------------------------------------------------------------------- /examples/example-306/example-003_vars/default-recursive-true.yml: -------------------------------------------------------------------------------- 1 | ../default-recursive-true.yml -------------------------------------------------------------------------------- /examples/example-306/example-004_vars/default-recursive-true.yml: -------------------------------------------------------------------------------- 1 | ../default-recursive-true.yml -------------------------------------------------------------------------------- /examples/example-306/example-005_vars/default-recursive-true.yml: -------------------------------------------------------------------------------- 1 | ../default-recursive-true.yml -------------------------------------------------------------------------------- /examples/example-306/example-006_vars/default-recursive-true.yml: -------------------------------------------------------------------------------- 1 | ../default-recursive-true.yml -------------------------------------------------------------------------------- /examples/example-306/example-007_vars/default-recursive-true.yml: -------------------------------------------------------------------------------- 1 | ../default-recursive-true.yml -------------------------------------------------------------------------------- /examples/example-306/example-008_vars/default-recursive-true.yml: -------------------------------------------------------------------------------- 1 | ../default-recursive-true.yml -------------------------------------------------------------------------------- /examples/example-306/example-009_vars/default-common.yml: -------------------------------------------------------------------------------- 1 | ../default-common.yml -------------------------------------------------------------------------------- /examples/example-309/playbook_01.yml: -------------------------------------------------------------------------------- 1 | - name: playbook_01 2 | hosts: my_hosts 3 | tasks: 4 | - debug: 5 | msg: Start play 6 | -------------------------------------------------------------------------------- /examples/example-309/playbook_02.yml: -------------------------------------------------------------------------------- 1 | - name: playbook_02 2 | hosts: my_hosts 3 | tasks: 4 | - debug: 5 | msg: Start play 6 | -------------------------------------------------------------------------------- /examples/example-316/helper/keep_keys/templates/default.j2: -------------------------------------------------------------------------------- 1 | {{ input | community.general.keep_keys(target=target) }} 2 | -------------------------------------------------------------------------------- /examples/example-316/helper/keep_keys/templates/mp.j2: -------------------------------------------------------------------------------- 1 | {{ input | community.general.keep_keys(target=target, matching_parameter=mp) }} 2 | -------------------------------------------------------------------------------- /examples/example-316/helper/lists_mergeby/files/example-001_vars/default-common.yml: -------------------------------------------------------------------------------- 1 | ../../vars/default-common.yml -------------------------------------------------------------------------------- /examples/example-316/helper/lists_mergeby/files/example-002_vars/default-common.yml: -------------------------------------------------------------------------------- 1 | ../../vars/default-common.yml -------------------------------------------------------------------------------- /examples/example-316/helper/lists_mergeby/files/example-003_vars/default-recursive-true.yml: -------------------------------------------------------------------------------- 1 | ../../vars/default-recursive-true.yml -------------------------------------------------------------------------------- /examples/example-316/helper/lists_mergeby/files/example-004_vars/default-recursive-true.yml: -------------------------------------------------------------------------------- 1 | ../../vars/default-recursive-true.yml -------------------------------------------------------------------------------- /examples/example-316/helper/lists_mergeby/files/example-005_vars/default-recursive-true.yml: -------------------------------------------------------------------------------- 1 | ../../vars/default-recursive-true.yml -------------------------------------------------------------------------------- /examples/example-316/helper/lists_mergeby/files/example-006_vars/default-recursive-true.yml: -------------------------------------------------------------------------------- 1 | ../../vars/default-recursive-true.yml -------------------------------------------------------------------------------- /examples/example-316/helper/lists_mergeby/files/example-007_vars/default-recursive-true.yml: -------------------------------------------------------------------------------- 1 | ../../vars/default-recursive-true.yml -------------------------------------------------------------------------------- /examples/example-316/helper/lists_mergeby/files/example-008_vars/default-recursive-true.yml: -------------------------------------------------------------------------------- 1 | ../../vars/default-recursive-true.yml -------------------------------------------------------------------------------- /examples/example-316/helper/lists_mergeby/files/example-009_vars/default-common.yml: -------------------------------------------------------------------------------- 1 | ../../vars/default-common.yml -------------------------------------------------------------------------------- /examples/example-316/helper/lists_mergeby/templates/list3.out.j2: -------------------------------------------------------------------------------- 1 | list3: 2 | {{ list3 | to_yaml(indent=2, sort_keys=false) | indent(2) }} 3 | -------------------------------------------------------------------------------- /examples/example-316/helper/remove_keys/templates/default.j2: -------------------------------------------------------------------------------- 1 | {{ input | community.general.remove_keys(target=target) }} 2 | -------------------------------------------------------------------------------- /examples/example-316/helper/remove_keys/templates/mp.j2: -------------------------------------------------------------------------------- 1 | {{ input | community.general.remove_keys(target=target, matching_parameter=mp) }} 2 | -------------------------------------------------------------------------------- /examples/example-316/helper/replace_keys/templates/default.j2: -------------------------------------------------------------------------------- 1 | {{ input | community.general.replace_keys(target=target) }} 2 | -------------------------------------------------------------------------------- /examples/example-316/helper/replace_keys/templates/mp.j2: -------------------------------------------------------------------------------- 1 | {{ input | community.general.replace_keys(target=target, matching_parameter=mp) }} 2 | --------------------------------------------------------------------------------