所以,在学习了球拍纯结构递归(初学者)之后,我做了一些练习。我找不到合适的解决办法,
我必须编写一个函数,即消耗开始和结束的列表均衡器,两个整数,其中start <=end并生成一个从开始到结束包含所有甚至整数的列表。例如,(list-evens −4 3)生成(list −4 −2 0 2)
这是我的密码
;;list-evens consumwes two integers and
;;produces a list of all even integers from start to end
;;list-ev
我的/etc/hosts文件如下所示:
# Your system has configured 'manage_etc_hosts' as True.
# As a result, if you wish for changes to this file to persist
# then you will need to either
# a.) make changes to the master file in /etc/cloud/templates/hosts.tmpl
# b.) change or remove the value of 'manage_
我需要调用一个shell脚本,该脚本将返回ec2在Ansible任务中的私有ip。一旦我在变量private_ip_var中获得了IP,我希望将该变量注入jinja2模板以生成一个配置文件。
我是这么想的:
- hosts: all
vars:
inline_variable: 'hello again'
tasks:
- name: Gets the IP of the ec2 instance
command: get_ec2_private_ip.sh <----- shell script to dynamically
我一直在试图找到如何在named.conf中禁用地址排序。基本上问题是,如果我在区域文件中有一堆关于循环的A记录,如果我从该列表中从该机器请求从该域的页面,它将始终返回该机器的地址。示例:区域文件中有一个计算机列表:
IN A 255.255.255.0
IN A 255.255.255.1
IN A 255.255.255.2
如果我试图从任何机器连接,我将从列表中得到一个随机IP,但是如果我使用带有IP 255.255.1的机器,dns将始终解析为255.255.255.1。我该如何改变这种行为?