summaryrefslogtreecommitdiff
path: root/worker-subplot.yml
diff options
context:
space:
mode:
Diffstat (limited to 'worker-subplot.yml')
-rw-r--r--worker-subplot.yml54
1 files changed, 0 insertions, 54 deletions
diff --git a/worker-subplot.yml b/worker-subplot.yml
deleted file mode 100644
index 8cf09ec..0000000
--- a/worker-subplot.yml
+++ /dev/null
@@ -1,54 +0,0 @@
-- hosts: image
- tasks:
- - shell: |
- echo "{{ host }}" > /etc/hostname
- sed -i '/^127\.0\.0.*localhost.*/s/.*/127.0.0.1 localhost {{ host }}/' \
- /etc/hosts
- sed -i '/^root:[^:]:/s//root::/' /etc/passwd
- - copy:
- content: |
- auto lo
- iface lo inet loopback
-
- auto eth0
- iface eth0 inet dhcp
- dest: /etc/network/interfaces
- - apt:
- name:
- - build-essential
- - cargo
- - graphviz
- - librsvg2-bin
- - locales-all
- - pandoc
- - pandoc-citeproc
- - plantuml
- - texlive-fonts-recommended
- - texlive-latex-base
- - texlive-latex-recommended
- - user:
- comment: "Worker"
- name: worker
- shell: /bin/bash
- - file:
- state: directory
- path: /home/worker/.ssh
- owner: worker
- group: worker
- mode: 0700
- - copy:
- src: manager.key.pub
- dest: /home/worker/.ssh/authorized_keys
- owner: worker
- group: worker
- mode: 0600
- - copy:
- content: |
- worker ALL=(ALL:ALL) NOPASSWD: ALL
- dest: /etc/sudoers.d/worker
- owner: root
- group: root
- mode: 0600
- vars:
- host: worker
- ansible_python_interpreter: /usr/bin/python3