Created
October 25, 2018 19:44
-
-
Save jondkelley/b2e693e07acfbc3dac97705464edc9bb to your computer and use it in GitHub Desktop.
cat a file in Windows using ansible
This file contains hidden or 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: 'get newrelic-infra config' | |
win_shell: 'more newrelic-infra.yml' | |
args: | |
chdir: 'C:\Program Files\New Relic\newrelic-infra\' | |
executable: cmd | |
register: hello | |
- name: 'show newrelic-infra config' | |
debug: msg="{{ hello.stdout.split('\n')[:-1] }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment