--- - name: Install ShadowArch (ArchLinux) vars: ansible_become_password: "{{ passwords[inventory_hostname] }}" become: yes pacman: name: ShadowArch state: present update_cache: yes when: ansible_os_family == "Archlinux" - name: Set up AniNIX-specific repository location (Other) when: ansible_os_family != "Archlinux" vars: ansible_become_password: "{{ passwords[inventory_hostname] }}" become: yes file: path: /opt/aninix state: directory - name: Download ShadowArch (Other) vars: ansible_become_password: "{{ passwords[inventory_hostname] }}" become: yes ignore_errors: yes git: repo: 'https://foundation.aninix.net/AniNIX/ShadowArch' dest: '/opt/aninix/ShadowArch' update: yes when: ansible_os_family != "Archlinux" - name: Install ShadowArch (Other) vars: ansible_become_password: "{{ passwords[inventory_hostname] }}" become: yes command: chdir: '/opt/aninix/ShadowArch' cmd: '/bin/bash -c "make install"' when: ansible_os_family != "Archlinux"