Created
November 9, 2017 11:52
-
-
Save martbhell/0bb48005411f856ebdaf27743b4ff543 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: play | |
hosts: localhost | |
connection: local | |
vars: | |
user_list: | |
- user1 | |
- root | |
host_list: | |
- { host: "dumm1", hostname: "10.10.10.1" } | |
- { host: "dummy2", hostname: "10.10.10.2" } | |
tasks: | |
- name: Add fetch to ~/.ssh/config | |
debug: | |
msg: "{{ item[0] }} {{ item[1]['hostname'] }}" | |
with_nested: | |
- "{{ user_list }}" | |
- "{{ host_list }}" | |
... |
Author
martbhell
commented
Nov 9, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment