服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. ansible
  3. 你如何在可靠的group_names中search子string?
Intereting Posts
如何找出什么在Ubuntu中打破Apache2? 将正在运行的Linux系统转换为另一台机器上的KVM实例 解释CentOS 5与CentOS 6 – 为什么版本不连续? 重新安装iptables后出现fsck.ext4错误 带有-all的SPF包含指令〜all? 系统pipe理员知道用户密码的networking策略是什么? 在Linux中使用脚本结合多个PDF文件? 如何避免Apache“options * http / 1.0” 在具有多个虚拟主机的nginx服务器之前清除服务器 如何限制Windows Server 2008 R2中的用户带宽 KVM – 磁盘性能 换一个RAIDarrays中有错误的驱动器,但新的一个…但西数改变了块的大小? Windows Server 2008安装:wpeinit-unattend:unattend.xml什么也不做 使用amavis的自动密件抄送 删除文件只能部分释放空间(ext3 / ext4)

你如何在可靠的group_names中search子string?

对于一个组名hello ,我使用以下条件在ansible中,它工作正常:

 when: "'hello' in group_names " 

如果我想在以下group_names中匹配关键字hello ,有没有办法使用正则expression式:

 hello somewhere_hello hello123 

  • Ansible – 有很多include_tasks的服务器重启
  • Ansible playbook hostvars未定义的variables
  • 使用来自主机的文件作为lineinfile模块的input
  • 如何为安全的邮件模块提供用户名和密码
  • 由ansible创build的文件似乎具有损坏的权限

  • 在CentOS 6.6上使用sudo和–ask-sudo-pass
  • Ansible:权限被拒绝(公钥,密码)
  • 在特定的操作系统上运行时变成root
  • 通过伪ttyterminal的SSH和sudo
  • Ansible'错误! 目标主机丢失

您可以select和计数具有filter的项目:

 when: group_names | select('search','hello') | list | count > 0 
  • 在Ansible中,Puppet高pipe的所有者是什么?
  • 主机中的Ansible双循环
  • 公共ssh id在id_rsa.pub上不同于ansible_ssh_host_key_rsa_public
  • 为什么不能在stream浪汉的服务器上为我的404页面服务?
  • Ansible没有条件检查angular色。 什么是合适的?
  • Ansible,Vagrant,sudo和ssh-agent
  • 如何检查两个文件是否在相同的主机上完全相同?
  • 在单行上find模式?
  • 本地ansible-playbook与angular色的变数运行剧本
  • Ansible – 具有相同variables的多个语句

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy