--- - name: install ap et bd #hosts: ap31-prod, ap31-test #hosts: ap31-prodt hosts: all # become_method: sudo # remote_user: debian become: yes tasks: - name: install apache2, php, mariadb-server, python3-pymysql ansible.builtin.apt: name: - apache2 - php - mariadb-server - python3-pymysql state: present