macbook-qa

Log | Files | Refs | README

main.yml (432B)


      1 ---
      2 - name: Check App Store sign-in
      3   ansible.builtin.command:
      4     cmd: mas account
      5   register: mas_account
      6   failed_when: false
      7   changed_when: false
      8 
      9 - name: Fail if not signed into App Store
     10   ansible.builtin.fail:
     11     msg: "Sign into the Mac App Store before running this playbook (System Settings → App Store)."
     12   when: mas_account.rc != 0
     13 
     14 - name: Install Xcode
     15   community.general.mas:
     16     id: 497799835
     17     state: present