Loading run.yml +7 −9 Original line number Diff line number Diff line --- - name: python3 hosts: ipacluster become: yes tasks: - name: Bootstrap a host without python3 installed raw: ( test -n "$(which yum)" && yum install -y python3 ) ; ( test -n "$(which apt)" && apt install -y python3 ) ; ( test -n "$(which apk)" && apt add -y python3 ) - name: hostname hosts: hostname:&ipacluster become: yes roles: - hostname - name: python3 hosts: ipacluster become: yes tasks: - name: python3 ansible.builtin.package: name: python3 state: present Loading
run.yml +7 −9 Original line number Diff line number Diff line --- - name: python3 hosts: ipacluster become: yes tasks: - name: Bootstrap a host without python3 installed raw: ( test -n "$(which yum)" && yum install -y python3 ) ; ( test -n "$(which apt)" && apt install -y python3 ) ; ( test -n "$(which apk)" && apt add -y python3 ) - name: hostname hosts: hostname:&ipacluster become: yes roles: - hostname - name: python3 hosts: ipacluster become: yes tasks: - name: python3 ansible.builtin.package: name: python3 state: present