This repository was archived by the owner on Feb 13, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
provisioning/roles/drupalvm.hostname Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,7 @@ galaxy_info:
1616 - all
1717 - name : Ubuntu
1818 versions :
19- - precise
20- - raring
21- - saucy
22- - trusty
23- - xenial
19+ - all
2420
2521 galaxy_tags :
2622 - drupal
Original file line number Diff line number Diff line change 33 copy :
44 content : " {{ hostname_fqdn }}\n "
55 dest : /etc/mailname
6- when : ansible_os_family == 'Debian'
6+ when :
7+ - ansible_os_family == 'Debian'
8+ - hostname_fqdn
79
810- name : Add hostname to /etc/hosts.
911 lineinfile :
1214 line : " 127.0.0.1\t {{ hostname_fqdn }}\t {{ hostname_short }}"
1315 state : present
1416 unsafe_writes : " {{ hostname_unsafe_writes }}"
17+ when : hostname_fqdn
1518
1619- name : Configure hostname.
1720 copy :
1821 content : " {{ (ansible_os_family == 'Debian') | ternary(hostname_short, hostname_fqdn) }}\n "
1922 dest : /etc/hostname
2023 unsafe_writes : " {{ hostname_unsafe_writes }}"
2124 register : set_hostname
25+ when : hostname_fqdn
2226
2327- name : Set the hostname for current session.
2428 command : hostname --file /etc/hostname
25- when : set_hostname.changed
29+ when :
30+ - set_hostname is changed
31+ - hostname_fqdn
2632 tags : ['skip_ansible_lint']
You can’t perform that action at this time.
0 commit comments