|
|
пре 1 година | |
|---|---|---|
| .. | ||
| inventory | пре 1 година | |
| playbooks | пре 1 година | |
| README.md | пре 1 година | |
| ansible-tuto-chatgpt.md | пре 1 година | |
Run playbook:
ansible-playbook -i inventory/hosts playbooks/install_php_mysql.yml -K
TASK [MariaDB setup] **********************************************************************************************************************
fatal: [192.168.1.85]: FAILED! => {"changed": true, "cmd": ["/etc/init.d/mariadb", "setup"], "delta": "0:00:00.009031", "end": "2024-02-14 16:27:03.174459", "msg": "non-zero return code", "rc": 1, "start": "2024-02-14 16:27:03.165428", "stderr": " * mariadb: cannot `setup' as it has not been stopped", "stderr_lines": [" * mariadb: cannot `setup' as it has not been stopped"], "stdout": "", "stdout_lines": []}
Résolu en vérifiant si MariaDB est déjà up & running.
ASK [create MySQL database] **************************************************************************************************************
fatal: [192.168.1.85]: FAILED! => {"changed": false, "msg": "A MySQL module is required: for Python 2.7 either PyMySQL, or MySQL-python, or for Python 3.X mysqlclient or PyMySQL. Consider setting ansible_python_interpreter to use the intended Python version."}
Pas mal de modules à installer