aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/roles/dotfiles/tasks/main.yml
blob: 3f4d88531661f420a450a8722237e1b3afe613d6 (plain) (tree)























                                                         

                          

                                              




                                              
- name: ssh-agent hack
  acl:
    name: "{{ item }}"
    etype: user
    entity: "{{ dotfiles_user }}"
    permissions: rwx
    state: present
  loop:
    - "{{ ansible_env.SSH_AUTH_SOCK | dirname }}"
    - "{{ ansible_env.SSH_AUTH_SOCK }}"

- name: Update my dotfiles
  become: true
  become_user: "{{ dotfiles_user }}"
  block:
    - name: Pull repositories
      git:
        accept_hostkey: true
        dest: "~/workspace/personal/{{ item }}"
        repo: "git@github.com:egor-tensin/{{ item }}.git"
      loop:
        - linux-home
        - config-links

    - name: Run update.sh
      command: ./update.sh
      args:
        chdir: ~/workspace/personal/linux-home

    - name: Update Vim plugins
      command: ./vim_plugins.sh
      args:
        chdir: ~/workspace/personal/linux-home