aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jumbotron/tasks/jumbotron.yml
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2018-10-02 22:26:17 +0200
committerEmil Renner Berthing <esmil@labitat.dk>2018-10-03 21:09:55 +0200
commit7cc8370ab5e3428c24f37b7259331b10038b6acb (patch)
tree3a54b887aed7b40662b267bba5edcf82fc29464e /roles/jumbotron/tasks/jumbotron.yml
parent4f98942a50341c2827ace103f153374f0b351135 (diff)
downloadlabitat-ansible-7cc8370ab5e3428c24f37b7259331b10038b6acb.tar.gz
labitat-ansible-7cc8370ab5e3428c24f37b7259331b10038b6acb.tar.xz
labitat-ansible-7cc8370ab5e3428c24f37b7259331b10038b6acb.zip
jumbotron: add role to set up jumbotron rpi
Diffstat (limited to 'roles/jumbotron/tasks/jumbotron.yml')
-rw-r--r--roles/jumbotron/tasks/jumbotron.yml37
1 files changed, 37 insertions, 0 deletions
diff --git a/roles/jumbotron/tasks/jumbotron.yml b/roles/jumbotron/tasks/jumbotron.yml
new file mode 100644
index 0000000..0b6f1a7
--- /dev/null
+++ b/roles/jumbotron/tasks/jumbotron.yml
@@ -0,0 +1,37 @@
+---
+- name: Create jumbotron user
+ user:
+ comment: 'John Jumbotron'
+ name: jumbotron
+ shell: '/bin/bash'
+ uid: 3000
+ group: users
+
+- name: Create jumbotron dotfiles
+ copy:
+ dest: '~jumbotron/.{{ item.name }}'
+ src: '{{ item.name }}'
+ owner: jumbotron
+ group: users
+ mode: '{{ item.mode }}'
+ with_items:
+ - { name: bash_profile, mode: 0o644 }
+ - { name: autologin, mode: 0o755 }
+
+- name: Check out jumbotron repo
+ git:
+ dest: '~jumbotron/jumbotron'
+ repo: 'https://github.com/labitat/jumbotron.git'
+ accept_hostkey: yes
+ clone: yes
+ update: yes
+ remote: origin
+
+- name: Make sure jumbotron owns git repo
+ file:
+ dest: '~jumbotron/jumbotron'
+ owner: jumbotron
+ group: users
+ recurse: yes
+
+# vim: set ts=2 sw=2 et: