-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Milestone] Armed motors and savings (#62)
- Loading branch information
1 parent
00e4765
commit c763c0f
Showing
10 changed files
with
77 additions
and
32 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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,35 @@ | ||
--- | ||
- name: Collect and clear .lil log folders from remote hosts | ||
hosts: myhosts | ||
become: yes | ||
|
||
tasks: | ||
- name: Create local .lil directory if it doesn't exist | ||
become: no | ||
delegate_to: localhost | ||
file: | ||
path: "{{ lookup('env','PWD') }}/.lil" | ||
state: directory | ||
mode: '0755' | ||
|
||
- name: Copy remote .lil log folder to local machine | ||
become: no | ||
delegate_to: localhost | ||
synchronize: | ||
src: /lil-hopps/.lil/ | ||
dest: "{{ lookup('env','PWD') }}/.lil/{{ inventory_hostname }}/" | ||
mode: pull | ||
recursive: yes | ||
|
||
- name: Remove contents of remote .lil log folder | ||
file: | ||
path: /lil-hopps/.lil/ | ||
state: absent | ||
|
||
- name: Recreate remote .lil log folder | ||
file: | ||
path: /lil-hopps/.lil/ | ||
state: directory | ||
mode: '0777' | ||
owner: pi | ||
group: pi |
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 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 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 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 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 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,2 @@ | ||
#!/bin/bash | ||
ansible-playbook -i ansible/inventory.ini ansible/playbooks/collect_lil_logs.yml |
Submodule victory-suite
updated
8 files