manipulate hosts only on request

This commit is contained in:
2022-02-24 22:26:35 +01:00
parent 03af41c9e2
commit cd38915212
2 changed files with 3 additions and 1 deletions

View File

@@ -6,4 +6,5 @@
owner: 'root' owner: 'root'
group: 'root' group: 'root'
loop: loop:
- { ip: '192.168.1.240', fqdn: 'gitlab.social.my-wan.de'} - { ip: '192.168.1.240', fqdn: 'gitlab.social.my-wan.de'}
when: set_hosts is defined and set_hosts == true

View File

@@ -1,3 +1,4 @@
rene_password: rene_password:
swappiness_value: 5 swappiness_value: 5
set_hosts: false
root_home: "{{ lookup('env','HOME') }}" root_home: "{{ lookup('env','HOME') }}"