dashboard
repositories
filestore
activity
search
login
rht
/
rh294
additional course material RH294
summary
reflog
commits
tree
tickets
docs
forks
compare
blame
|
history
|
raw
new stuff during t3
Olaf Bohlen
2020-08-20
1de6236f80a879ca110981fe0e5c0c05c521225b
[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