把我的头发都扯出来了。我敢肯定这非常简单。当我运行时:
make django_servers ENV="staging"
在下面的Makefile中,当命中$(MAKE) scoring_worker_servers ${ENV}行时,我得到以下错误
make[1]: *** No rule to make target 'staging'. Stop.
我已经包含了整个Makefile。
# Put any command that doesn't create a file here (almost all of the commands)
.P
在我的攻略中,我正在尝试验证Python版本。在这个操作系统(Linux)上,我有两个版本的Python:
python --version
Python 2.7.5
python3 --version
Python 3.6.8
我设置了一个pre_task来验证Ansible版本和Python版本(示例):
pre_tasks:
- name: Validate we run with the correct Ansible version
register: data
assert:
that:
- ansible_ve
朋友,
我正在尝试对一个EC2实例运行一些可分析的任务,并得到以下错误:
fatal: [ubuntu]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to
the host via ssh: ssh: connect to host 34.218.130.84 port 22:connection timed out",
"unreachable": true}
我认为,问题与Ansible配置有关,因为我尝试使用相同的IP、用户名和pem-f
寻找帮助与一个奇怪的错误,我是疑难解答与一个剧本。
我有一个可以工作的SSH会话到一个交换机,但在Ansible上通过SCP传输文件有困难。我可以直接从同一台服务器启动SCP会话,没有任何问题,并且可以传输文本文件(下面的引用相同),但是它在Ansible中似乎不起作用。
我通过Ansible启用了详细的日志记录,这就是我在生成的日志文件中看到的。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "
我在使用Ansible时遇到了一个非常奇怪的bug。我有一个使用jinja模板的基本脚本。我的脚本位于一个名为junos的目录中。我已经指定我的模板将位于一个名为templates的目录中,在这里可以找到脚本: ---
- name : Load and commit the config
hosts: access_sw
vars:
ansible_python_interpreter: /usr/bin/python3.6
roles:
- Juniper.junos
connection: local
gather_facts: no