dashboard
repositories
filestore
activity
search
login
rht
/
rh294
additional course material RH294
summary
reflog
commits
tree
tickets
docs
forks
compare
blame
|
history
|
raw
include a debug demo with verbosity levels
Student User
2020-02-20
67b9520a2490b9894fea1a76b98e4f5c2226b62f
[rht/rh294.git]
/
play-with-hosts-template.yaml
1
2
3
4
5
6
7
8
9
10
11
---
- name: Simple play for class DO407 hosts template
hosts: server, desktop, demoext
become: true
tasks:
- debug:
msg: '{{ hostvars["servera"]["ansible_facts"]["default_ipv4"]["address"] }}'
- name: use template to create /etc/hosts-new
template:
src: hosts.j2
dest: /etc/hosts-new