File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
roles/write_characteristics_file Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ dependencies :
3
+ - yaegashi.blockinfile
Original file line number Diff line number Diff line change
1
+ ---
2
+ # This Ansible playbook creates a characteristics file to help with bug
3
+ # reporting.
4
+
5
+ - name : Obtain version information.
6
+ command : cat /vagrant/repository_version
7
+ register : text
8
+
9
+ - name : Obtain date.
10
+ command : date
11
+ register : date
12
+
13
+ - name : Obtain other information.
14
+ command : cat /vagrant/build_information
15
+ register : build_info
16
+
17
+ - name : Write characteristics file.
18
+ blockinfile :
19
+ dest=/virtualmicromagnetics_machine_characteristics
20
+ create=yes
21
+ marker="# --- {mark} ADDED BY ANSIBLE ---"
22
+ content="\nBuild virtualmicromagnetics version : {{ text.stdout }}\nBuild date: {{ date.stdout }}\n{{ build_info.stdout }}"
23
+ sudo : yes
You can’t perform that action at this time.
0 commit comments