~hokiegeek/wiki

af31bd49dd0a9d705a769f9a88550b9d66bccf34 — HokieGeek 6 months ago 28da985 1.0.0-8
Trying out user location for the systemd units
3 files changed, 9 insertions(+), 3 deletions(-)

M prod/bucket.yml
M prod/gce.yml
M prod/tiddlywiki.yml
M prod/bucket.yml => prod/bucket.yml +2 -2
@@ 13,13 13,13 @@
      - name: bucket | Create a systemd timer unit
        template:
          src: sync_bucket.timer.j2
          dest: /etc/systemd/system/sync_bucket.timer
          dest: "{{ systemd_dir }}/sync_bucket.timer"
          mode: 644
        become: yes
      - name: bucket | Create a systemd service unit
        template:
          src: sync_bucket.service.j2
          dest: /etc/systemd/system/sync_bucket.service
          dest: "{{ systemd_dir }}/sync_bucket.service"
          mode: 644
        become: yes
      - name: bucket | Starting the timer

M prod/gce.yml => prod/gce.yml +6 -0
@@ 1,5 1,11 @@
#!/usr/bin/env -S ansible-playbook -v -i wiki.hokiegeek.net, -u hokiegeek -e ansible_network_os=vyos
---
- hosts: all
  tasks:
      - shell: "echo $HOME"
        register: home
      - set_fact: home_dir="{{home.stdout}}"
      - set_fact: systemd_dir="{{home_dir}}/.config/systemd/user"
- import_playbook: bucket.yml
- import_playbook: tiddlywiki.yml
- import_playbook: hgproxy.yml

M prod/tiddlywiki.yml => prod/tiddlywiki.yml +1 -1
@@ 5,7 5,7 @@
      - name: wiki | Create a systemd unit
        template:
          src: hgwiki.service.j2
          dest: /etc/systemd/system/hgwiki.service
          dest: "{{ systemd_dir }}/hgwiki.service"
          mode: 644
        become: yes
      - name: wiki | Start service