summaryrefslogtreecommitdiff
path: root/contractor.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-04-23 11:06:46 +0300
committerLars Wirzenius <liw@liw.fi>2020-04-23 13:21:17 +0300
commit716a6c0a991796816ade2816778bfde0c9fb55e1 (patch)
tree1d33657997678a1cb6d0d90ac3b728ea2913b0f2 /contractor.md
parent5756a7ab1b2d31d0e705ae902a572a1263857a94 (diff)
downloadick-contractor-716a6c0a991796816ade2816778bfde0c9fb55e1.tar.gz
Change: use Ansible for configuring worker, not apt-get
Diffstat (limited to 'contractor.md')
-rw-r--r--contractor.md22
1 files changed, 18 insertions, 4 deletions
diff --git a/contractor.md b/contractor.md
index 42ed3c8..9a19a39 100644
--- a/contractor.md
+++ b/contractor.md
@@ -312,8 +312,15 @@ then the JSON output matches dump.yaml
~~~{.file #dump.yaml .yaml .numberLines}
worker-image: worker.img
-install:
- - build-essential
+ansible:
+ - hosts: worker
+ remote_user: worker
+ become: yes
+ tasks:
+ - apt:
+ name: build-essential
+ vars:
+ ansible_python_interpreter: /usr/bin/python3
source: .
workspace: workspace
build: |
@@ -354,8 +361,15 @@ int main()
~~~{.file #hello.yaml .yaml .numberLines}
worker-image: worker.img
-install:
- - build-essential
+ansible:
+ - hosts: worker
+ remote_user: worker
+ become: yes
+ tasks:
+ - apt:
+ name: build-essential
+ vars:
+ ansible_python_interpreter: /usr/bin/python3
source: .
workspace: ws
build: |