]> git.somenet.org - root/pub/somesible.git/blob - roles/custom-command/tasks/main.yml
[roles/custom-command] Execute custom command on host(s)
[root/pub/somesible.git] / roles / custom-command / tasks / main.yml
1 #####################################
2 ### someone's ansible provisioner ###
3 #####################################
4 # Part of: https://git.somenet.org/root/pub/somesible.git
5 # 2017-2024 by someone <someone@somenet.org>
6 #
7 # usage: ./run_somesible.sh -D --tags cc -e '{"cc":["id","uname -a"]}'
8 #
9 ---
10 - include_tasks: run-command.yml
11   with_items: "{{cc}}"
12   loop_control:
13     loop_var: cmd
14   when: cc is defined