Commit 0092bcf

bryfry <bryon@fryer.io>
2023-09-15 11:43:02
install dir
1 parent 78aee2c
Changed files (2)
main.yml
@@ -2,6 +2,8 @@
 - name: mf main.yml
   hosts: localhost
   gather_facts: True
+  vars: 
+    install_dir: "{{ ansible_env.HOME }}/.config/mf"
 
   tasks:
    - name: apt update cache
@@ -61,11 +63,9 @@
   
    - name: home directory symlinks
      file:
-       src: "{{ home_repo }}/{{ item.src }}"
+       src: "{{ install_dir }}/files/{{ item.src }}"
        dest: "{{ ansible_env.HOME }}/{{ item.dest }}"
        state: link
-     vars:
-       home_repo: "{{ ansible_env.HOME }}/git/mf/files"
      loop:
       - src: "tmux.conf"
         dest: ".tmux.conf"
README.md
@@ -2,18 +2,31 @@
 
 ```bash
 {
+  # apt
   sudo apt update
   sudo apt install -y python3-pip python3-venv git git-lfs
-  mkdir -p ${HOME}/git 
-  git clone git@github.com:bryfry/mg.git ${HOME}/git/mf
-  cd ${HOME}/git/mf
+
+  # fetch
+  mkdir -p ${HOME}/.config
+  git clone git@github.com:bryfry/mg.git ${HOME}/.config/mf
+  cd ${HOME}/.config/mf
+
+  # pip/venv
   python3 -m venv venv
   source venv/bin/activate
   python3 -m pip install ansible
+
+  # run
   ansible-playbook main.yml --ask-become-pass
 }
 ```
 
+```bash 
+mkdir -p ${HOME}/git
+cd ${HOME}/git
+ln -s ${HOME}/.config/mf
+```
+
 ## Log
 
 ### 2023-09-15