This repository has been archived by the owner on Sep 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from jaypoulz/dev-v1.0
Cosmetic updates and error cleanup.
- Loading branch information
Showing
4 changed files
with
32 additions
and
32 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
- name: Host Summary | ||
hosts: all | ||
gather_facts: true | ||
|
||
tasks: | ||
- debug: msg="{{ playbook_dir }}" | ||
|
||
- name: Create output directory | ||
file: path="{{ playbook_dir}}/artifacts/host-summary" state=directory mode=0755 | ||
|
||
- template: | ||
src: "{{ playbook_dir }}/templates/host-summary.j2" | ||
dest: "{{ playbook_dir }}/artifacts/host-summary/{{ ansible_architecture }}.txt" | ||
mode: 0644 | ||
|
||
- fetch: | ||
src: "{{ playbook_dir }}/artifacts/host-summary/{{ ansible_architecture }}.txt" | ||
dest: "{{ playbook_dir }}/artifacts/host-summary/{{ ansible_architecture }}.txt" | ||
flat: yes |
2 changes: 1 addition & 1 deletion
2
...ks/example-test/templates/example-test.j2 → ...ks/host-summary/templates/host-summary.j2
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