-
-
Save mattt416/b29bffed2b13bc119407 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: No idea | |
hosts: hosts | |
user: root | |
tasks: | |
- name: Get container names | |
command: lxc-ls | |
register: container_names | |
- name: stuff | |
debug: var=container_names | |
- name: Get container_info | |
lxc_container: | |
name: "{{ item }}" | |
register: config_container_info | |
with_items: container_names.stdout_lines | |
- name: Print container info | |
debug: var=config_container_info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment