Add clients to server's inventory file.
This commit is contained in:
parent
118e9ceac6
commit
0b00ac560c
2 changed files with 10 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
## LAN IP address range:
|
||||
ipaddr_lan: 192.168.0.10/24
|
||||
dhcp_range: 192.168.0.50,192.168.0.99,2h
|
||||
in_inventory: 192.168.0.[50:99]
|
||||
|
||||
di_dist: "{{ ansible_distribution_release }}"
|
||||
di_version: "{{ ansible_distribution_major_version }}"
|
||||
|
|
|
@ -146,3 +146,12 @@
|
|||
dest: "/etc/systemd/system/git-repo.service"
|
||||
notify: start git-repo
|
||||
when: not run_in_installer|default(false)|bool
|
||||
|
||||
######################
|
||||
|
||||
- name: add clients to inventory
|
||||
blockinfile:
|
||||
dest: /etc/ansible/hosts
|
||||
block: |
|
||||
[kerberox-client]
|
||||
{{ in_inventory }}
|
||||
|
|
Loading…
Add table
Reference in a new issue