Спасибо за помощь
|
Теперь такая ошибка
[WARNING]: Consider using get_url or uri module rather than running curl [WARNING]: Consider using yum module rather than running yum *************************** ok: [MyWM] TASK [push-server : include variables fr om temporary config] ******************* ok: [MyWM] TASK [push-server : additional gathering facts] ******************************** ok: [MyWM] TASK [push-server : include] *************************************************** TASK [push-server : include] *************************************************** TASK [push-server : include] *************************************************** included: /etc/ansible/roles/push-server/tasks/configure_nodjs_push-server.yml for MyWM TASK [push-server : file] ****************************************************** ok: [MyWM] => (item=/etc/yum.repos.d/nodesource-el.repo) ok: [MyWM] => (item=/etc/yum.repos.d/nodesource-el6.repo) TASK [push-server : configure nodejs repository] ******************************* changed: [MyWM] TASK [push-server : delete old nodejs-packages] ******************************** TASK [push-server : delete old push-server package] **************************** TASK [push-server : command] *************************************************** changed: [MyWM] TASK [push-server : install packages] ****************************************** failed: [MyWM] (item=[u'openssl-libs', u'openssl']) => {"changed": false, "failed": true, "item": ["openssl-libs", "openssl"], "msg": ": [Errno 14] HTTP Error 403 - Forbidden\nTrying other mirror.\nTo address this issue please refer to the below wiki article\n\n above article doesn't help to resolve this issue please use One of the configured repositories failed (-),\n and yum doesn't have enough cached data to continue. At this point the only\n safe thing yum can do is fail. There are a few ways to work \"fix\" this:\n\n 1. Contact the upstream for the repository and get them to fix the problem.\n\n 2. Reconfigure the baseurl/etc. for the repository, to point to a working\n upstream. This is most often useful if you are using a newer\n distribution release than is supported by the repository (and the\n packages for the previous distribution release still work).\n\n 3. Run the command with the repository temporarily disabled\n yum --disablerepo=bitrix ...\n\n 4. Disable the repository permanently, so yum won't use it by default. Yum\n will then just ignore the repository until you permanently enable it\n again or use --enablerepo for temporary usage:\n\n yum-config-manager --disable bitrix\n or\n subscription-manager repos --disable=bitrix\n\n 5. Configure the failing repository to be skipped, if it is unavailable.\n Note that yum will try to contact the repo. when it runs most commands,\n so will have to try and fail each time (and thus. yum will be be much\n slower). If it is a very temporary problem though, this is often a nice\n compromise:\n\n yum-config-manager --save --setopt=bitrix.skip_if_unavailable=true\n\nfailure: repodata/repomd.xml from bitrix: [Errno 256] No more mirrors to try.\n: [Errno 14] HTTP Error 403 - Forbidden\n", "rc": 1, "results": []} to retry, use: --lim it @/etc/ansible/push-server.retry PLAY RECAP ********************************************************************* MyWM : ok=7 changed=2 unreachable=0 failed=1 |
|
|
|
|
|
Делаю все согласно данной инструкции. .
В задачах на установку появляется ошибка. [WARNING]: Consider using get_url or uri module rather than running curl [WARNING]: Consider using yum, dnf or zypper module rather than running rpm [WARNING]: Consider using yum module rather than running yum ables fr om temporary config] ******************* ok: [MyWM] TASK [push-server : additional gathering facts] ******************************** ok: [MyWM] TASK [push-server : include] *************************************************** TASK [push-server : include] *************************************************** TASK [push-server : include] *************************************************** included: /etc/ansible/roles/push-server/tasks/configure_nodjs_push-server.yml for MyWM TASK [push-server : file] ****************************************************** ok: [MyWM] => (item=/etc/yum.repos.d/nodesource-el.repo) ok: [MyWM] => (item=/etc/yum.repos.d/nodesource-el6.repo) TASK [push-server : configure nodejs repository] ******************************* changed: [MyWM] TASK [push-server : delete old nodejs-packages] ******************************** failed: [MyWM] (item=nodejs) => {"changed": true, "cmd": "rpm -e --nodeps \"nodejs\"", "delta": "0:00:00.021054", "end": "2022-04-22 12:05:18.464888", "failed": true, "item": "nodejs", "rc": 1, "start": "2022-04-22 12:05:18.443834", "stderr": "error: package nodejs is not installed", "stdout": "", "stdout_lines": [], "warnings": ["Consider using yum, dnf or zypper module rather than running rpm"]} ...ignoring failed: [MyWM] (item=npm) => {"changed": true, "cmd": "rpm -e --nodeps \"npm\"", "delta": "0:00:00.020746", "end": "2022-04-22 12:05:18.566462", "failed": true, "item": "npm", "rc": 1, "start": "2022-04-22 12:05:18.545716", "stderr": "error: package npm is not installed", "stdout": "", "stdout_lines": [], "warnings": ["Consider using yum, dnf or zypper module rather than running rpm"]} TASK [push-server : delete old push-server package] **************************** TASK [push-server : command] *************************************************** changed: [MyWM] TASK [push-server : install packages] ****************************************** changed: [MyWM] => (item=[u'openssl-libs', u'openssl']) TASK [push-server : install http-parser] *************************************** TASK [push-server : install packages] ****************************************** changed: [MyWM] => (item=[u'nodejs', u'bx-push-server']) TASK [push-server : delete installed push-server modules] ********************** changed: [MyWM] TASK [push-server : install packages based on package.json.] ******************* changed: [MyWM] TASK [push-server : change owner] ********************************************** changed: [MyWM] TASK [push-server : push-service service file] ********************************* ok: [MyWM] TASK [push-server : redis user] ************************************************ changed: [MyWM] TASK [push-server : configure redis] ******************************************* changed: [MyWM] TASK [push-server : redis service directory] *********************************** changed: [MyWM] TASK [push-server : redis optional config] ************************************* changed: [MyWM] TASK [push-server : upd ate systemd config] ************************************* changed: [MyWM] TASK [push-server : service redis] ********************************************* fatal: [MyWM]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find the requested service redis: cannot check nor se t state"} to retry, use: --lim it @/etc/ansible/push-server.retry PLAY RECAP ********************************************************************* MyWM : ok=19 changed=13 unreachable=0 failed=1 Что я делаю не так? Помогите разобраться. |
|
|
|
|