aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/roles/dotfiles/tasks/main.yml
blob: 4230aacb642abf08ac0758955565d3d8b09388a1 (plain) (tree)
1
2
3
                      
                    
                      












                                                 
                          




                                                         
 

                                         

                                              
- name: ssh-agent hack
  ansible.posix.acl:
    path: "{{ 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

    - name: Run setup.sh
      ansible.builtin.command: ./setup.sh
      args:
        chdir: ~/workspace/personal/linux-home