--- - name: Prepare hosts: all tasks: - name: Disable beta repos ansible.builtin.command: yum config-manager --disable '*beta*' ignore_errors: yes - name: Install sudo ansible.builtin.yum: name: - sudo - java-1.8.0-openjdk state: present