forked from itlackey/system-setups
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwustl_setup.yaml
More file actions
64 lines (56 loc) · 1.41 KB
/
wustl_setup.yaml
File metadata and controls
64 lines (56 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
- name: Base setup for ubuntu wustl machine
hosts: localhost
become: yes
gather_facts: yes
vars_files:
- ./vars.yml
tasks:
- name: Install required packages
apt:
name:
- network-manager-openconnect-gnome
# onedrive deps
- libcurl4-openssl-dev
- libsqlite3-dev
state: present
- name: Install dmd for onedrive client
community.general.snap:
name:
- dmd
classic: true
become: no
- name: Create onedrive folder
file:
path: ~/code/github/onedrive
state: directory
become: no
- name: Clone onedrive repository
git:
repo: https://github.com/skilion/onedrive.git
dest: ~/code/github/onedrive
become: no
register: repo_clone
- name: Compile onedrive
command: make
args:
chdir: ~/code/github/onedrive
become: no
when: repo_clone.changed
- name: Install onedrive
become: no
when: repo_clone.changed
command: sudo make install
args:
chdir: ~/code/github/onedrive
- name: Copy readme file
fetch:
src: wustl_notes.md
dest: /tmp/
- name: Read wustl readme file
slurp:
src: /tmp/localhost/wustl_notes.md
register: readme_content
- name: Print readme file contents
debug:
msg: "{{ readme_content.content | b64decode }}"