aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/dotfiles/tasks/main.yml
blob: 6aebcc3024feedb80ceace617c089a18eea07c51 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
- name: ssh-agent hack
  ansible.posix.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
      ansible.builtin.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
      ansible.builtin.command: ./update.sh
      args:
        chdir: ~/workspace/personal/linux-home

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