ansible ubuntu のaptが失敗する
- name: Install PHP
apt:
name:
- php7.4
update_cache: yes
force_apt_get: yes
state: present
es:\n libgnutls-openssl27 : Depends: libgnutls30 (= 3.4.10-4ubuntu1.7) but 3.4.10-4ubuntu1.5 is to be installed\n php7.4 : Depends: libapache2-mod-php7.4 but it is not going to be installed or\n php7.4-fpm but it is not going to be installed or\n php7.4-cgi but it is not going to be installed\n Depends: php7.4-common but it is not going to be installed\n", "stdout_lines": "Reading package lists...", "Building dependency tree...", "Reading state information...", "You might want to run 'apt-get -f install' to correct these:", "The following packages have unmet dependencies:", " libgnutls-openssl27 : Depends: libgnutls30 (= 3.4.10-4ubuntu1.7) but 3.4.10-4ubuntu1.5 is to be installed", " php7.4 : Depends: libapache2-mod-php7.4 but it is not going to be installed or", " php7.4-fpm but it is not going to be installed or", " php7.4-cgi but it is not going to be installed", " Depends: php7.4-common but it is not going to be installed"} システムエラー出てるので、書いてるコマンドを実機で