summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-01-23 09:44:44 +0200
committerLars Wirzenius <liw@liw.fi>2022-01-23 09:44:44 +0200
commit304a0cea93b77fd0ee32f0a6003e078200df368e (patch)
treede2e66f9e32836d86a2f94af2e0eb68726c85f1f
parent89e0640786000c4ee42c9c9e18b9b16f77aa4048 (diff)
downloadansibleness-304a0cea93b77fd0ee32f0a6003e078200df368e.tar.gz
configure liw-dot-files on exolobe5
Sponsored-by: author
-rw-r--r--ansible/exolobe5.yml12
-rw-r--r--ansible/roles/liw/tasks/main.yml1
2 files changed, 11 insertions, 2 deletions
diff --git a/ansible/exolobe5.yml b/ansible/exolobe5.yml
index 496c5a0..00863de 100644
--- a/ansible/exolobe5.yml
+++ b/ansible/exolobe5.yml
@@ -51,11 +51,19 @@
git:
repo: git://git.liw.fi/ansibleness
dest: /home/liw/ansibleness
- - name: "set ownership of everything in ~liw/ansibleness"
+ - name: "clone liw-dot-files to ~liw"
+ git:
+ repo: git://git.liw.fi/liw-dot-files
+ dest: /home/liw/liw-dot-files
+ - name: "set ownership of everything in ~liw/ansibleness and liw-dot-files"
args:
warn: false
shell: |
- chown -R liw:liw /home/liw/ansibleness
+ chown -R liw:liw /home/liw/ansibleness /home/liw/liw-dot-files
+ - name: "configure liw dot files"
+ shell: |
+ sudo -u liw -i bash -c "pwd && ./liw-dot-files/make-symlinks"
+ sudo -u liw -i bash -c "ln -s liw-dot-files/gitconfig-exolobe1 .gitconfig"
- name: "create ~liw/base-images"
file:
state: directory
diff --git a/ansible/roles/liw/tasks/main.yml b/ansible/roles/liw/tasks/main.yml
index fd60280..4dcec1e 100644
--- a/ansible/roles/liw/tasks/main.yml
+++ b/ansible/roles/liw/tasks/main.yml
@@ -6,6 +6,7 @@
shell: |
if ! [ -e /home/liw/.config ]; then sudo -u liw -i git clone git://git.liw.fi/liw-dot-files; fi
sudo -u liw -i bash -c "pwd && ./liw-dot-files/make-symlinks"
+ sudo -u liw -i bash -c "ln -s liw-dot-files/gitconfig-exolobe1 .gitconfig"
- name: "create ~liw/src and ~liw/cargo"
file: