摘要:
- hosts: all sudo: yes tasks: - debug: msg = "{{ ansible_hostname }}" - name: Test task: {% for host in groups['app_servers'] %} {{host}} {% endfor %} 阅读全文
posted @ 2022-09-15 12:08
技术颜良
阅读(62)
评论(0)
推荐(0)
摘要:
而且此处我们可以写成变量的形式,首先,我们用ansible的setup模块取出VCPU的表示 [root@ceshi ansible]# ansible -i hosts ceshi -m setup |grep "processor" "ansible_processor": [ "ansible 阅读全文
posted @ 2022-09-15 11:20
技术颜良
阅读(119)
评论(0)
推荐(0)
摘要:
上面几章我们已经学会了变量的使用,以及如何书写变量,但是,同学们有没有想过,简单的任务我们的确可以命令行、hosts文件或playbook中简单定义,但是这样同样也提高了耦合性,不利于更多工作或者更多同事的协同办公呢? 而且,其实有时候我们自己定义的变量并不能随着具体的配置来进行动态调整(而temp 阅读全文
posted @ 2022-09-15 11:18
技术颜良
阅读(408)
评论(0)
推荐(0)
摘要:
# John Murphy <john.m.murphy&mci.com>afs3-fileserver 7000/tcp file server itselfafs3-fileserver 7000/udp file server itselfafs3-callback 7001/tcp call 阅读全文
posted @ 2022-09-15 10:01
技术颜良
阅读(1341)
评论(0)
推荐(0)
摘要:
https://blog.csdn.net/qq_45066628/article/details/123709463 阅读全文
posted @ 2022-09-15 07:56
技术颜良
阅读(38)
评论(0)
推荐(0)

浙公网安备 33010602011771号