Skip to content
Snippets Groups Projects
local.yml 1.25 KiB
Newer Older
  • Learn to ignore specific revisions
  • Daniel Müller's avatar
    Daniel Müller committed
    ---
    - hosts: localhost
      vars:
        target_user: pi
        ignore_python_version: false 
    
    Daniel Müller's avatar
    Daniel Müller committed
        ignore_architecture: false
    
        jupyter_service: true
        jupyter_autostart: true
    
        jupyter_start: true
    
    Daniel Müller's avatar
    Daniel Müller committed
    
      pre_tasks:
        - name: Check python version
          fail:
    
            msg: "Python version is not supported. Expected 3.9.x . Set ignore_python_version to true to ignore this. Running on a different python version is not supported and will most likely not work."
          when: (not ignore_python_version) and not (ansible_python_version is version('3.9.0', '>=') and ansible_python_version is version('3.10.0', '<'))
        
        - name: Check architecture
          fail:
            msg: "CPU Architecture not compatible. Expected aarch64 (arm 64-bit). Set ignore_architecture to true to ignore this. Running on a different architecture is not supported and will most likely not work."
          when: not ignore_architecture and ansible_architecture != 'aarch64'
    
    Daniel Müller's avatar
    Daniel Müller committed
    
        - name: Update apt cache & install base requirements
          become: true
          apt:
            update_cache: true
            state: present
            name:
              - python3-pip
              - python3-venv
    
      roles:
    
        - telesec-globalroot-ca
    
    Daniel Müller's avatar
    Daniel Müller committed
        - jupyter-lab
        - ml-python-packages
        - misc-applications
    
    Daniel Müller's avatar
    Daniel Müller committed
        - local-mdbook