- tags: [asdf]
  block:
    - name: Create directory for asdf
      file:
        path: "{{ asdf_install_dir }}"
        state: directory
        recurse: yes
        owner: "{{ user.name }}"
        group: "{{ user.group }}"
        mode: 0o775

    - name: Install asdf version manager
      git:
        repo: https://github.com/asdf-vm/asdf.git
        version: v0.7.4
        dest: "{{ asdf_install_dir }}"
        update: no
        clone: yes

    - name: Configure asdf
      template:
        src: configure_asdf.sh
        dest: "{{ shell_conf_dir }}/bash"
        mode: 0o700
        owner: "{{ user.name }}"
        group: "{{ user.group }}"

- tags: [asdf]
  block:
    - name: Create directory for asdf
      file:
        path: "{{ asdf_install_dir }}"
        state: directory
        recurse: yes
        owner: "{{ user.name }}"
        group: "{{ user.group }}"
        mode: 0o700

    - name: Install asdf version manager
      git:
        repo: https://github.com/asdf-vm/asdf.git
        version: v0.7.4
        dest: "{{ asdf_install_dir }}"
        update: no
        clone: yes

    - name: Configure asdf
      template:
        src: configure_asdf.sh
        dest: "{{ shell_conf_dir }}/bash"
        mode: 0o700
        owner: "{{ user.name }}"
        group: "{{ user.group }}"

Change mode of asdf dir
asdf: Change mode of asdf dir
